In this tutorial, you will learn how to pass data between siblings components without using any third-party library.
In React you can pass state as props to the child components but you cannot pass state between sibling components.

The best solution for this can be wrapping both siblings in a parent component and handle the state inside the parent component. Then you easily can share the state between any siblings that you want and use the state inside the child components.

Subscribe : https://www.youtube.com/channel/UCEoaRTl5alo9tw3A-eDJV9Q

#react #javascript

React Passing Data Between Siblings
108.10 GEEK