DEV Community

Discussion on: You don't need useReducer

adamklein profile image
adam klein Author

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