Add Routing on the app

This commit is contained in:
Charles Bochet
2022-12-02 12:39:15 +01:00
parent 017df9dae2
commit eba76274c6
7 changed files with 101 additions and 67 deletions

View File

@ -2,12 +2,13 @@ import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import { BrowserRouter } from 'react-router-dom';
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement,
);
root.render(
<React.StrictMode>
<BrowserRouter>
<App />
</React.StrictMode>,
</BrowserRouter>,
);