Error Handling in Next.js 16.2

Next.js provides error.tsx for route-level error handling. These examples show component-level error boundaries for when you need more granular control within a page.

react-error-boundary catches all errors, including notFound() and redirect(). reset() only clears client state without re-fetching Server Component data.