A schematic example, we have 2 classes:
var Child = React.createClass({ getInitialState: { objects: {} }, render: function() { return ( <div value={this.state.objects}></div> ); }, }); var Parent = React.createClass({ render: function() { return ( <Child/> ); }, }); in Parent you need to send data. You need to send an object that is in Child. One of the options is:
var Child = React.createClass({ render: function() { return ( <div value={this.props.objects}></div> ); }, }); var Parent = React.createClass({ getInitialState: { objects: {} }, render: function() { return ( <Child objects={this.state.objects}/> ); }, }); That is, we pass the objects parameter from an ancestor to the child, and we can change it using child methods. The question arose whether it was possible somehow without these dancings with parameter passes from the ancestor to get access to the child's state in order to pull out some data from there (without using the concepts of flux \ redux) If so, how can this be done?