3 ms·
I actually prefer the opposite, just one state per component. And I use immer for that (use-immer, specifically). Most of my components have one set of props (p
by wereHamster 5y ago
I actually prefer the opposite, just one state per component. And I use immer for that (use-immer, specifically). Most of my components have one set of props (passed down from the parent), one set of state, execute one GraphQL request.