Replacement UI. Receives the error and a retry callback; return
whatever the host's error presentation is. Omit for the built-in
message-plus-retry fallback.
OptionalonError
onError?:(error:Error,info:ErrorInfo)=>void
Called once per caught error, with React's component stack. Use it
to report; the boundary renders the fallback either way.
Replacement UI. Receives the error and a retry callback; return whatever the host's error presentation is. Omit for the built-in message-plus-retry fallback.