Francisco Gutiérrez
1 min readAug 21, 2019

--

I would propose a pattern to avoid main app.jsx to set the initial state.
So you can use any component with a hook inside without relying on this.

Something like a getter that will trigger the setState

--

--

Francisco Gutiérrez
Francisco Gutiérrez

Written by Francisco Gutiérrez

An web artisan too old for the hype. 📜 "I hear and I forget. I see and I remember. I do and I understand."

No responses yet