docs: function syncSetState (newState) {
    // Mutation is faster and should be safe here.
    this.state = assign(
      this.state,
      isFunction(newState) ?
        newState(this.state, this.props) :
        newState
    );
  }