Question · JavaScript and React course · Module 4: Context API and useReducer

What is Context API?

What main problem does Context API solve in React?

Answer options

  • Inability to use hooks in components
  • The 'prop drilling' problem - passing data through many levels of components
  • Performance issues with rendering
  • Inability to manage local state

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