forked from google-map-react/google-map-react
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMain.js
26 lines (23 loc) · 814 Bytes
/
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
// file: main.jsx
import React from 'react';
import { render } from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import Layout from './Layout';
import GMap from './GMap';
import GMapOptim from './GMapOptim';
import GMapResizable from './GMapResizable';
import 'normalize.css/normalize.css';
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="hoveroptim" component={GMapOptim} />
<Route markersCount={20} path="resizable" component={GMapResizable} />
<IndexRoute markersCount={20} component={GMap} />
</Route>
</Router>
,
mountNode
);