• Accesses the error thrown during an action, loader, or component render to be used in a route module Error Boundary.

    export function ErrorBoundary() {
    const error = useRouteError();
    return <div>{error.message}</div>;
    }

    Returns unknown