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

Debugging Complex State Flows

Which tool is most effective for debugging Context API in React?

Answer options

  • React DevTools with the Components tab
  • console.log in every component
  • Browser debugger with breakpoints
  • Unit tests

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