React how to update another component's state?
<p>I am pretty new to react, trying to make some components work. I have</p>

<pre><code>    ObjectA:React.createClass({
        propTypes: {
           ...

        },

        getInitialState: function() {
            return {
                myState: null
            }
        },

        updateMyState: function(value) {
           this.setState({
               myState: value
           })
        }

        render: function() {
            return (&lt;div className="my-class"&gt;'hello' +{this.state.myState}&lt;/div&gt;);
          }
    });

    ObjectB:React.createClass({
            propTypes: {
               ...

            },

            render: function() {
                return (&lt;div className="my-class"&gt;&lt;ObjectA / &gt;

            &lt;/div&gt;);
            }
        });
</code></pre>

<p>I'd like to update ObjectA's state from ObjectB. How could I in ObjectB call ObjectA's updateMyState method?
Thanks!</p>