DEV Community

loading...

Discussion on: Managing state with React Context

Collapse
karimdaghari profile image
Karim Daghari

Hey Raushan,

Although I think that this more of a minor annoyance than a real problem, I completely agree with you. Personally the way I solved it was create a component AppProviders in which I included all contexts and then I would use that component (AppProviders) to wrap around my App component, therefore resulting in a clean, easy to read JSX.