File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
apps/languagesv2/languages-v2-web/src Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import './App.css' ;
3- import { BrowserRouter as Router , Route , Routes } from 'react-router-dom' ;
3+ import { Route , Routes } from 'react-router-dom' ;
44import Home from './pages/Home' ;
55import Nav from './pages/Nav' ;
66import Quiz from './pages/Quiz' ;
@@ -9,7 +9,6 @@ import Video from './pages/Video';
99
1010function App ( ) {
1111 return (
12- < Router >
1312 < div className = "App w-full flex flex-col items-center justify-center min-h-screen bg-gray-100" >
1413 < Nav />
1514 < div className = "w-4/5" >
@@ -20,7 +19,6 @@ function App() {
2019 </ Routes >
2120 </ div >
2221 </ div >
23- </ Router >
2422 ) ;
2523}
2624
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import ReactDOM from 'react-dom/client' ;
3+ import { BrowserRouter } from 'react-router-dom' ;
34import './index.css' ;
45import App from './App' ;
56import reportWebVitals from './reportWebVitals' ;
@@ -9,7 +10,9 @@ const root = ReactDOM.createRoot(
910) ;
1011root . render (
1112 < React . StrictMode >
12- < App />
13+ < BrowserRouter basename = "/app" >
14+ < App />
15+ </ BrowserRouter >
1316 </ React . StrictMode >
1417) ;
1518
You can’t perform that action at this time.
0 commit comments