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

Creating a Context with createContext

Arrange the syntax for creating a new context with a default value:

Items to put in order

  • 'light'
  • const ThemeContext
  • createContext(
  • =
  • )

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