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

When NOT to Use Context API

In which situation is Context API NOT a good choice?

Answer options

  • Storing the current application theme
  • Tracking mouse position updated every few milliseconds
  • Storing logged-in user data
  • Sharing the selected language (locale) across the entire application

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