onCaughtError

abstract var onCaughtError: Any(source)

Only supported in React 19. Callback called when React catches an error in an Error Boundary. Called with the error caught by the Error Boundary, and an errorInfo object containing the componentStack.

See also

{@link https://react.dev/reference/react-dom/client/createRoot#parameters createRoot#options}