-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
32 lines (29 loc) · 788 Bytes
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { useState } from 'react';
import reactLogo from './assets/react.svg';
import viteLogo from '/vite.svg';
import './App.css';
import ErrorBoundary from "./core/containers/ErrorBoundary";
import { Route, Routes } from "react-router-dom";
import React from "react";
import routes from "./routes";
import GlobalUI from "./core/containers/GlobalUI";
function App() {
return (
<>
<ErrorBoundary>
<GlobalUI>
<Routes>
{routes.map((route) => (
<Route
key={route.path}
path={route.path}
element={React.createElement(route.component, route.props ?? {})}
/>
))}
</Routes>
</GlobalUI>
</ErrorBoundary>
</>
);
}
export default App;