MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / fallbackRender

Function fallbackRender

suspense-error-boundary/src/App4.tsx:15–20  ·  view source on GitHub ↗
({ error })

Source from the content-addressed store, hash-verified

13}
14
15const fallbackRender = ({ error }) => {
16 return <div>
17 <p>出错了:</p>
18 <div>{error.message}</div>
19 </div>
20}}
21
22export default function App() {
23 return <ErrorBoundary fallbackRender={fallbackRender}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected