MCPcopy Create free account
hub / github.com/coolvasanth/reactjs_interview_preparation / handleError

Function handleError

src/Capgemini/Question3.js:14–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12function ErrorBoundary({ children }) {
13 const [error, setError] = useState(null);
14 const handleError = () => {
15 setError('Something went wrong!');
16 };
17
18 return (
19 <>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected