⇠ chan.dev/ lessons/ reactholiday / 2019

Dispatch Actions with useReducer

React.useReducer takes actions to modify state. An action is just an object with a type and optional payload properties…

Assignment Sandbox: https://codesandbox.io/s/react-holiday-day-17-n6xmv