File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import './index.scss';
1616import App from './App' ;
1717import reportWebVitals from './reportWebVitals' ;
1818import { RecoilRoot } from 'recoil' ;
19- import { BrowserRouter , Route } from 'react-router' ;
19+ import { BrowserRouter , Route , Routes } from 'react-router' ;
2020import { Login } from '@mui/icons-material' ;
2121
2222const root = ReactDOM . createRoot (
@@ -26,8 +26,10 @@ root.render(
2626 < React . StrictMode >
2727 < RecoilRoot >
2828 < BrowserRouter >
29- < Route path = "/" element = { < Login /> } />
30- < Route path = "/app" element = { < App /> } />
29+ < Routes >
30+ < Route path = "/" element = { < Login /> } />
31+ < Route path = "/app" element = { < App /> } />
32+ </ Routes >
3133 </ BrowserRouter >
3234 </ RecoilRoot >
3335 </ React . StrictMode >
You can’t perform that action at this time.
0 commit comments