Update ReactReduxSpa to React Hot Loader 3, and remove Babel dependency

This commit is contained in:
Steve Sanderson
2017-05-17 21:51:13 +01:00
parent eeaf4e6590
commit 48b923fcd5
7 changed files with 31 additions and 27 deletions

View File

@@ -5,13 +5,8 @@ import Home from './components/Home';
import FetchData from './components/FetchData';
import Counter from './components/Counter';
export default <Layout>
export const routes = <Layout>
<Route exact path='/' component={ Home } />
<Route path='/counter' component={ Counter } />
<Route path='/fetchdata/:startDateIndex?' component={ FetchData } />
</Layout>;
// Enable Hot Module Replacement (HMR)
if (module.hot) {
module.hot.accept();
}