- reactjs.org/docs/error-boundaries.html
- https://btholt.github.io/complete-intro-to-react-v6/error-boundaries
This file can be called ErrorBoundary.js
1 | import { Component } from "react"; |
Then wrap the child
1 | // add import |
This file can be called ErrorBoundary.js
1 | import { Component } from "react"; |
Then wrap the child
1 | // add import |