-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
27 lines (24 loc) · 886 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Route } from 'react-router-dom';
import App from './App';
import AboutMe from './components/AboutMe';
import Music from './components/Music';
import Coding from './components/Coding';
import Contact from './components/Contact';
import registerServiceWorker from './registerServiceWorker';
const Root = () => {
return (
<BrowserRouter>
<div>
<Route path='/home' component={App} />
<Route path='/aboutMe' component={AboutMe} />
<Route path='/coding' component={Coding} />
<Route path='/music' component={Music} />
<Route path='/contact' component={Contact} />
</div>
</BrowserRouter>
)
}
ReactDOM.render(<Root />, document.getElementById('root'));
registerServiceWorker();