import { Component , lazy } from 'react' ; import { ErrorBoundary } from 'react-error-boundary' ; import { PageError } from './PageError' ; function $R ( fn ) { const RouteChunk = lazy ( fn ) ; return class AsyncRoute extends Component { render ( ) { return ( < ErrorBoundary FallbackComponent = { PageError } > < RouteChunk /> < /ErrorBoundary>); } static preload ( ) { fn ( ) ; } } ; } export const Home = $R ( ( ) => import ( './home' ) ) ; export const Guide = $R ( ( ) => import ( './guide' ) ) ; export const Download = $R ( ( ) => import ( './download' ) ) ; export const Customize = $R ( ( ) => import ( './customize' ) ) ; export const Browse = $R ( ( ) => import ( './browse' ) ) ; export const Source = $R ( ( ) => import ( './source' ) ) ; export const License = $R ( ( ) => import ( './license' ) ) ; export const Sponsors = $R ( ( ) => import ( './sponsors' ) ) ; export const Frameworks = $R ( ( ) => import ( './frameworks' ) ) ;