DEV Community

Discussion on: The React Context hell

Collapse
 
codyseibert profile image
Cody Seibert

You could just use a real state management library instead of context.

Collapse
 
alfredosalzillo profile image
Alfredo Salzillo

For example?

Collapse
 
linhtch90 profile image
Linh Truong Cong Hong

Recoil?

Thread Thread
 
alfredosalzillo profile image
Alfredo Salzillo

So you don't use react router and have a BrowserRouter in your code? Or if you use CSS in JS solution, you don't have a kind of ThemeProvider? Or you put both in a recoil state?
Ah and you still need the RecoilRoot, a provider.

Thread Thread
 
codyseibert profile image
Cody Seibert

I could see what you mean, but no we use riot router, don’t do css in js, and use cerebral js, so we have maybe one provider nested out app.