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

createContext Syntax with a Type

Arrange the syntax for creating a typed React context:

Items to put in order

  • (undefined);
  • const MyContext =
  • <MyType | undefined>
  • createContext

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