Click in order · JavaScript and React course · Module 4: Context API and useReducer

useReducer Declaration Syntax

Build a correct useReducer declaration:

Items to click

  • =
  • reducer, initialState)
  • useReducer(
  • const
  • [state, dispatch]

You can check the correct answer by solving this task in the CodeWorlds game.