DEV Community

Discussion on: 3 Tips to write better react components

pabloabc profile image
Pablo Berganza (he/him)

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. :)

elisealcala profile image
Elizabeth Alcalá Author

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 :)