Mark As Completed Discussion

Build your intuition. Click the correct answer from the options.

What is the purpose of an Error Boundary in React?

Click the option that best answers the question.

  • To catch JavaScript errors during rendering and prevent the entire React component tree from unmounting
  • To log errors to the console for debugging purposes
  • To automatically fix errors in React components
  • To skip rendering any components that have errors