-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
26 lines (23 loc) · 866 Bytes
/
Copy pathindex.js
File metadata and controls
26 lines (23 loc) · 866 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
25
26
import React from 'react';
import { render } from 'react-dom';
import { Router, Route, browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import configureStore from './configureStore';
//self made components
import Apartments from './apartments.js';
import AddNewListing from './addlisting';
import ApartmentDetail from './apartmentdetail';
import Comparables from './comparables';
const store = configureStore();
const root = document.getElementById('root');
render(
<Provider store={store}>
<Router history={browserHistory}>
<Route path="addapartment/" component={AddNewListing} />
<Route path="apartments/" component={Apartments}/>
<Route path="apartment/:apartmentId/" component={ApartmentDetail} />
<Route path="comparables/" component={Comparables} />
</Router>
</Provider>,
root
);