Import Browser Router and sorrounded App.
This commit is contained in:
parent
8ce6e485e2
commit
3e3f7bbdac
|
@ -1,5 +1,6 @@
|
|||
import { FirebaseConfig } from "./config/Config";
|
||||
import { initializeApp } from "firebase/app";
|
||||
import {Routes, Route} from "react-router-dom";
|
||||
|
||||
import "react-bootstrap/Container"
|
||||
import "react-bootstrap/Navbar"
|
||||
|
@ -22,7 +23,7 @@ function App() {
|
|||
</Nav>
|
||||
</Container>
|
||||
</Navbar>
|
||||
<h1>React App</h1>
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -4,11 +4,14 @@ import './index.css';
|
|||
import App from './App';
|
||||
import reportWebVitals from './reportWebVitals';
|
||||
import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
|
||||
import { BrowserRouter } from 'react-router-dom';
|
||||
|
||||
const root = ReactDOM.createRoot(document.getElementById('root'));
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<BrowserRouter>
|
||||
<App />
|
||||
</BrowserRouter>
|
||||
</React.StrictMode>
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue