I have a component that at some point should read a state variable belonging to its descendant.
Should this particular state variable move to the parent and be changed via a callback?
As I can see, and some of them are most likely incorrect, this is for and against moving the state to parents:
Pro: This seems to be more suitable for unidirectional data flow mantras.
Con: Other parent elements of the parent will be overwritten when the state changes (not in the real DOM, but it can still affect performance).
What is the best practice here?
source share