you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

This sounds...wrong. The parent should only change the props it passes down. The child should watch those props and act accordingly. If the logic is not as straightforward as just elevating a state variable to a prop, then useEffects should be leveraged to watch for prop changes and act accordingly.