2016-10-03 14:44:27 +13:00
|
|
|
/**
|
|
|
|
|
* Base-level application wrapper
|
|
|
|
|
**/
|
|
|
|
|
|
2019-01-09 16:56:35 +13:00
|
|
|
import React, { PropTypes } from 'react';;
|
|
|
|
|
import ReactDOM from 'react-dom';;
|
|
|
|
|
import { Provider } from 'react-redux';
|
|
|
|
|
import { createStore } from 'redux';
|
|
|
|
|
//import { Router, Route, Link, IndexRoute, hashHistory } from 'react-router';
|
|
|
|
|
import { BrowserRouter, Route, IndexRoute } from "react-router-dom";
|
2016-10-03 14:44:27 +13:00
|
|
|
|
2018-07-08 21:12:18 +12:00
|
|
|
import store from './bootstrap.js';
|
2016-10-17 22:00:29 +13:00
|
|
|
require('../scss/app.scss');
|
|
|
|
|
|
2018-07-08 21:12:18 +12:00
|
|
|
import App from './App';
|
2016-10-03 14:44:27 +13:00
|
|
|
|
2018-07-08 21:12:18 +12:00
|
|
|
global.baseURL = '/';
|
2016-12-21 15:24:07 +13:00
|
|
|
|
2016-10-03 14:44:27 +13:00
|
|
|
ReactDOM.render(
|
2016-10-03 15:22:15 +13:00
|
|
|
<Provider store={store}>
|
2019-01-09 16:56:35 +13:00
|
|
|
<BrowserRouter>
|
2019-01-09 21:57:57 +13:00
|
|
|
<Route path="/" component={App} />
|
2019-01-09 16:56:35 +13:00
|
|
|
</BrowserRouter>
|
2016-10-03 14:44:27 +13:00
|
|
|
</Provider>,
|
|
|
|
|
document.getElementById('app')
|
|
|
|
|
);
|