HOC
withErrorBoundary(Component, options) envuelve un componente con un ErrorBoundary.
TSX
1import { withErrorBoundary } from "react-rescuer/hoc";2
3function ProfilePage() {4 return <div>...</div>;5}6
7export const SafeProfilePage = withErrorBoundary(ProfilePage, {8 fallback: <div>Profile fallback</div>,9});COPIAR
