Question · JavaScript and React course · Module 16: Error Handling and Suspense
Types of Errors in React
Which type of error causes the entire React component tree to unmount (white screen)?
Answer options
- Error in Promise.catch()
- Error in an event handler (onClick)
- Uncaught component rendering error
- Error in setTimeout or setInterval
You can check the correct answer by solving this task in the CodeWorlds game.