Click in order · JavaScript and React course · Module 16: Error Handling and Suspense
Error Boundary Implementation Steps
Click in order the elements needed to create an Error Boundary:
Items to click
- class ErrorBoundary extends React.Component
- static getDerivedStateFromError(error)
- render() { return this.state.hasError ? fallback : children }
- componentDidCatch(error, errorInfo)
You can check the correct answer by solving this task in the CodeWorlds game.