Skip to contentOpen History to see the last commit
error.tsx
12 lines318 Bytes
1import { createLazyRoute } from '../../src' 3export function Route(id: string) { 4 return createLazyRoute(id)({ 5 component: () => <div>About route content</div>, 6 errorComponent: ({ error }) => ( 8 Lazy Error: {error instanceof Error ? error.message : String(error)}