forked from google-map-react/google-map-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.js
30 lines (26 loc) · 1.04 KB
/
Main.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
28
29
30
/* eslint-disable import/no-named-as-default */
import React from 'react';
import { render } from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import 'normalize.css/normalize.css';
import GMap from './GMap';
import Layout from './Layout';
import GMapOptim from './GMapOptim';
import GMapLayers from './GMapLayers';
import GMapHeatmap from './GMapHeatmap';
import GMapResizable from './GMapResizable';
import './Main.sass';
const mountNode = document.getElementById('app');
render(
<Router history={browserHistory}>
<Route path="/" component={Layout}>
<Route markersCount={50} path="hoverunoptim" component={GMap} />
<Route markersCount={50} path="layers" component={GMapLayers} />
<Route markersCount={50} path="hoveroptim" component={GMapOptim} />
<Route markersCount={20} path="resizable" component={GMapResizable} />
<Route markersCount={20} path="heatmap" component={GMapHeatmap} />
<IndexRoute markersCount={20} component={GMap} />
</Route>
</Router>,
mountNode
);