-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathindex.js
More file actions
24 lines (23 loc) · 837 Bytes
/
index.js
File metadata and controls
24 lines (23 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import React from 'react';
import ReactDOM from 'react-dom';
import { Switch, Route } from 'react-router';
import { BrowserRouter } from 'react-router-dom';
import Analytics from 'react-router-ga';
import App from './App';
import SharPeiComponent from './SharPei';
import GermanShepherdComponent from './GermanShepherd';
import GoldenRetrieverComponent from './GoldenRetriever';
ReactDOM.render(
<BrowserRouter>
<Analytics id="UA-138681497-1" debug>
<App>
<Switch>
<Route exact path="/golden-retriever" component={GoldenRetrieverComponent} />
<Route exact path="/german-shepherd" component={GermanShepherdComponent} />
<Route exact path="/shar-pei" component={SharPeiComponent} />
</Switch>
</App>
</Analytics>
</BrowserRouter>,
document.getElementById('root')
);