UNPKG

hoxa

Version:

A comprehensive collection of 100+ production-ready React hooks for state management, UI effects, forms, animations, and more. Carefully curated and optimized for performance and developer experience.

11 lines (10 loc) 305 B
import { type ReactNode } from "react"; export declare function useErrorBoundary(): { throwError: (err: Error) => void; resetError: () => void; ErrorBoundary: ({ children, fallback }: { children: ReactNode; fallback: ReactNode; }) => ReactNode; error: Error | null; };