Put in order · JavaScript and React course · Module 12: React and TypeScript

Data Flow in Context + useReducer

Arrange the data flow in Context + useReducer architecture in the correct order:

Items to put in order

  • Reducer processes the action and returns a new state
  • Provider updates the context value
  • Components using useContext re-render with the new state
  • Component calls dispatch({ type: 'ACTION', payload })

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