DEV Community

Discussion on: 3 Tips to write better react components

Collapse
 
pabloabc profile image
Pablo Berganza

Have you ever tried immerjs for useReducer? It's an extra dependency but I feel it's made my Redux reducers much much more readable and manageable. (Destructuring can become a PITA with enough nested structures).

Btw, saludos desde El Salvador. :)

Collapse
 
elisealcala profile image
Elizabeth Alcalá

Hi, I heard of immer.js but I haven't tried it yet. I'll give it a chance in my next project, thanks for the info :)