Put in order · JavaScript and React course · Module 4: Context API and useReducer
Creating a Context
Arrange the syntax for creating a context in React:
Items to put in order
- defaultValue
- )
- const ThemeCtx
- React.createContext(
- =
You can check the correct answer by solving this task in the CodeWorlds game.