Put in order · JavaScript and React course · Module 4: Context API and useReducer
useReducer Initialization
Arrange the syntax for initializing useReducer with a reducer and initial state:
Items to put in order
- =
- reducer,
- useReducer(
- const [state, dispatch]
- initialState)
You can check the correct answer by solving this task in the CodeWorlds game.