React DOM integration

Root error callbacks

React 19 root options can report caught, uncaught and recoverable errors; reporting is not a boundary.

Formal Syntax & Structure

react syntaxreact
createRoot(host, {onRecoverableError: report})

Working Example

Example Snippetreact
createRoot(host, {onRecoverableError: report})
React Reference