Question · JavaScript and React course · Module 16: Error Handling and Suspense

Centralizing Error Handling

Which tool is most commonly used for monitoring and reporting errors in production React applications?

Answer options

  • console.error() with saving to localStorage
  • Error monitoring services like Sentry, which capture errors and send reports automatically
  • window.alert() displaying the error to the user
  • Logging errors to a text file on the server

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