DEV Community

Discussion on: Do you need a State Management Library?

Collapse
 
andykras profile image
Andrey Krasnov

I'd prefer to use composition and render-props in this example.

Also I'm wondering why did you name your components function App, is this a typo?

Anyway agree with you that sometimes context API is a fairly good replace of complex state management.

Collapse
 
link2twenty profile image
Andrew Bone

Yeah the example I made was very simplistic and not one you'd use out in the wild but the principle is the same.

The naming of the components was just me writing a quick demo, the code is not production ready, that being said I've updated the function names now.