I have a react project. I have 3 routes, which are /, /adult, /children.
I have created the states and onChange handlers in App.js files and passing them as props to the sub components and updating the value in one of the sub component but the updated value not showing in the other child component
Project Link : https://codesandbox.io/s/trusting-haslett-pz2by?file=/src
When I am incrementing adult value, its updating in /adult page, but I have opened /children route in another tab but the props value isn't getting updated there
How can I achieve this?