Encapsulate as much state as possible in your component
A common pattern I see is passing every bit of a component's state in as a prop. This just puts the responsibility of that component's actual useful logic on to the parent.
https://blacksheepcode.com/posts/encapsulate_as_much_state_as_possible
Encapsulate as much state as possible in your component
A common pattern I see is passing every bit of a component's state in as a prop. This just puts the responsibility of that component's actual useful logic on to the parent.
https://blacksheepcode.com/posts/encapsulate_as_much_state_as_possible