DEV Community

Discussion on: You don't need useReducer

Collapse
adamklein profile image
adam klein Author

Can you give an example?
If I understand you correctly, then you can also compose the setter function of useState and add functionality on top like data integrity.