DEV Community

Discussion on: You don't need useReducer

Collapse
adamklein profile image
adam klein Author

Hi,
not trying to be sneaky, just concise :)
But if that's confusing I'll add a note to the article

I wanted to show 2 equivalent solutions, and because dispatch never changes I wanted to ensure that actions never change with useMemo