How to get a component to pass state to parent’s sibling?

Posted by Jessica Taylor | Updated on

Want to get a component to pass state to parent’s sibling? Store the data in the state highest common parent (Component 1). Create methods on component1 that manipulate this state and bind this to them in the constructor. Then pass the state down to component3.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers