diff options
Diffstat (limited to 'frontend/src/index.tsx')
| -rw-r--r-- | frontend/src/index.tsx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx new file mode 100644 index 0000000..eec2ff4 --- /dev/null +++ b/frontend/src/index.tsx | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | import React from 'react'; | ||
| 2 | import ReactDOM from 'react-dom/client'; | ||
| 3 | import { BrowserRouter } from "react-router-dom"; | ||
| 4 | |||
| 5 | import App from './App'; | ||
| 6 | |||
| 7 | const root = ReactDOM.createRoot( | ||
| 8 | document.getElementById('root') as HTMLElement | ||
| 9 | ); | ||
| 10 | |||
| 11 | root.render( | ||
| 12 | <React.StrictMode> | ||
| 13 | <BrowserRouter> | ||
| 14 | <App /> | ||
| 15 | </BrowserRouter> | ||
| 16 | </React.StrictMode> | ||
| 17 | ); | ||