ErrorBoundary
Provide a fallback when content fails to render.
Basic usage
Content is displayed normally.
basic.tsx
More examples
The fallback replaces only the failed section.
advanced.tsx
Usage
Catches descendant rendering and lifecycle errors. Handle event, async request and server errors in the operation or framework. Report through onError and avoid exposing internal stacks.
Types
Import these types for data, callbacks and refs.