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

Sentry and Error Boundary

How does Sentry integrate with Error Boundaries in React?

Answer options

  • Sentry automatically overrides all Error Boundaries
  • Sentry provides a ready-made Sentry.ErrorBoundary component with automatic reporting
  • Sentry requires manual invocation in every component
  • Sentry doesn't support Error Boundaries - it only works with try/catch

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