import * as React from 'react'; import { Route } from 'react-router'; import { CoreAdmin } from './CoreAdmin'; import { CustomRoutes } from './CustomRoutes'; export default { title: 'ra-core/core/CoreAdmin', }; const BuggyComponent = () => { throw new Error('Something went wrong...'); }; export const DefaultError = () => ( } /> ); const MyError = ({ error, errorInfo, }: { error?: Error; errorInfo?: React.ErrorInfo; }) => (

{error?.message}

{errorInfo?.componentStack}
); export const CustomError = () => ( } /> );