如果我正确理解您的问题,那么您正在尝试更新状态更改时要显示的组件(例如,用户创建帐户),该状态由子组件更改。这是一个显示孩子 - > 家长交流的基本示例。
在这种情况下,RegisterAccount组件是根组件。如果它是另一个组件的子组件,也需要知道hasAccount本示例中使用的状态,那么状态可能最好存储在链的更高位置(并作为props传递)。
这个例子的jsfiddle
/** @jsx React.DOM */
var AddAccount = React.createClass({
  handleRegistration: function() {
    this.props.updateAccount(true);
  },
  render: function() {
    return <a onClick={this.handleRegistration}>Create my account</a>;
  }
});
var AccountAdded = React.createClass({
  render: function() {
    return <span>Account exists now</span>;
  }
});
var RegisterAccount = React.createClass({
  getInitialState: function() {
    return {
      hasAccount: false
    };
  },
  updateAccountStatus: function(status) {
    this.setState({
      hasAccount: status
    });
  },
  render: function() {
    return (
      <div>
        {this.state.hasAccount ? <AccountAdded /> : <AddAccount updateAccount={this.updateAccountStatus} />}
      </div>
    );
  }
});
React.renderComponent(<RegisterAccount />, document.body);