Question · React Native course · Module 4: State and API data

createContext

How do you create a new Context in React?

Answer options

  • new Context()
  • React.createContext()
  • useContext.create()
  • Context.new()

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