Previous State

Loading "Previous State"
πŸ‘¨β€πŸ’Ό We want to change things a bit to have this API:
const [count, changeCount] = useReducer(countReducer, initialCount)
const increment = () => changeCount(step)
const decrement = () => changeCount(-step)
How would you need to change your reducer to make this work?
πŸ¦‰ This step is just to show that you can pass anything as the action.

Access Denied

You must login or register for the workshop to view the diff.

Check out this video to see how the diff tab works.