Newer
Older
import { ErrorBoundary } from 'react-error-boundary'
import ErrorFallback from './components/ErrorFallback'
import { GlobalStyle } from './global/GlobalStyle'
import Main from './global/Main'
import Router from './global/Router'
import { theme } from './theme'
<ThemeProvider theme={theme}>
<GlobalStyle theme={theme} />
<Main>
<ErrorBoundary FallbackComponent={ErrorFallback} onReset={goHome}>
<Router />
</ErrorBoundary>
</Main>
</ThemeProvider>