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

FallbackComponent in react-error-boundary

What props does FallbackComponent receive in react-error-boundary?

Answer options

  • children and onError
  • hasError and componentStack
  • error and resetErrorBoundary
  • errorMessage and retryCount

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