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

Galactic Command System

Arrange the steps for creating a galactic fleet management system:

Items to put in order

  • Create a Provider with useReducer
  • Create a fleet context
  • Implement a custom hook
  • Define a reducer for operations
  • Use the hook in components

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