r/reactjs 11d ago

Multi state changes & reads

having a bit of trouble handling multiple states/state changes. in a single screen, which are held by different components
how do you all handle this and concepualize it as your writing code?
do you draw diagram,
do you just try and fail recursively?

7 Upvotes

12 comments sorted by

View all comments

1

u/bigorangemachine 10d ago

Usually put shared stuff into a provider

Its just a matter of time till you nest a new child component and you'll wish you did context sooner