({ error })
| 13 | } |
| 14 | |
| 15 | const fallbackRender = ({ error }) => { |
| 16 | return <div> |
| 17 | <p>出错了:</p> |
| 18 | <div>{error.message}</div> |
| 19 | </div> |
| 20 | }} |
| 21 | |
| 22 | export default function App() { |
| 23 | return <ErrorBoundary fallbackRender={fallbackRender}> |
nothing calls this directly
no outgoing calls
no test coverage detected