2 ms·
React encourages you to use a parent component that controls the state and passes it down to it's children via props. Passing data to separate components witho
by rok3 13y ago
React encourages you to use a parent component that controls the state and passes it down to it's children via props.
Passing data to separate components without a shared parent is outside of what React is trying to accomplish but I've handled it before by passing a Backbone model to the separate components as props.