Actionless and Stateless Reducers in React

useReducer is not just for complex state-updating logic, it can be used for very simple state updates. One of the reducer’s two arguments can be ignored, making it either actionless or stateless.

Published · Last updated
Loading...