All challenges
Multiple ChoiceIntermediate 30s

Error boundaries

Choose the best answer for: React error handling
Options
  1. 1ErrorBoundary catches render errors and shows fallback UI
  2. 2try/catch wrapped around the JSX inside the render method
  3. 3No error handling, so any render error crashes the app
  4. 4CSS rules catch the render error and display the fallback

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle