import {ErrorBoundary} from 'react-error-boundary'; import Fallback from './Fallback'; export default function ErrorBoundaryComponent({children}) { return ( { window.location.reload(); }} > {children} ); }