feedback

error-boundary

Catches a render error in a subtree and renders a fallback — supports a reset callback for recovery without unmounting the tree.

Loading…

Throws on first render, shows the fallback. Click 'Try again' — the key bump forces remount into the recovered state.

Installation

Usage

Use when

  • Wrap a widget that might throw on bad props or failed async — the boundary keeps the rest of the UI alive