DEV Community

Discussion on: Explain lifting state up(React) Like I'm Five

Collapse
 
vonheikemen profile image
Heiker

Passing props down and lifting state is basically the first tool you have for "state management". Is it common? I believe it should. Can it get messy? Yes, absolutely. That's why React has added features like the "context api" or the new hooks. And also there are 3rd party tools like redux that can help you manage the state.

But you can do a lot using just props and component composition. Here is a video that show how to use component composition.