You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
401 B
TypeScript
15 lines
401 B
TypeScript
import { ErrorBoundary } from 'react-error-boundary';
|
|
import { Navigate, RouterProvider } from 'react-router-dom';
|
|
import { Page } from './constants';
|
|
import baseRouter from './routes/base-router';
|
|
|
|
function App() {
|
|
return (
|
|
<ErrorBoundary fallback={<Navigate to={Page.SYSTEM_ERROR.PATH} replace />}>
|
|
<RouterProvider router={baseRouter} />
|
|
</ErrorBoundary>
|
|
);
|
|
}
|
|
|
|
export default App;
|