Skip to content

Commit

Permalink
Add first route
Browse files Browse the repository at this point in the history
  • Loading branch information
Frodigo committed Dec 17, 2021
1 parent 0492a82 commit 3157af6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from "react-router-dom";
import { Routes, BrowserRouter, Route} from "react-router-dom";
import App from './App';
import 'bootstrap/dist/css/bootstrap.min.css';

ReactDOM.render(
<BrowserRouter>
<App />
<Routes>
<Route path="/" element={<App />} />
</Routes>
</BrowserRouter>,
document.getElementById('root')
);

0 comments on commit 3157af6

Please sign in to comment.