1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 15:20:06 +02:00
copilot/spikes/form/redux-form/client/root.js

53 lines
1.3 KiB
JavaScript
Raw Normal View History

const React = require('react');
const ReactHotLoader = require('react-hot-loader');
const ReactRedux = require('react-redux');
const ReactRouter = require('react-router');
const AppHome = require('./app');
const Form = require('./form/form');
const Multiform = require('./form/multiform');
const FormOne = require('./form/form-one');
const FormTwo = require('./form/form-two');
const FormThree = require('./form/form-three');
2017-02-20 18:15:36 +02:00
const FormNormalize = require('./form/form-normalize');
const {
AppContainer
} = ReactHotLoader;
const {
Provider
} = ReactRedux;
const {
Router,
Route,
IndexRoute,
browserHistory
} = ReactRouter;
const {
App,
Home
} = AppHome;
module.exports = ({
store
}) => {
return (
<AppContainer>
<Provider store={store}>
<Router history={browserHistory}>
<Route path="/" component={App}>
<IndexRoute component={Home} />
<Route path="form" component={Form} />
<Route path="form-one" component={FormOne} />
<Route path="form-two" component={FormTwo} />
<Route path="form-three" component={FormThree} />
2017-02-20 18:15:36 +02:00
<Route path="form-normalize" component={FormNormalize} />
</Route>
</Router>
</Provider>
</AppContainer>
);
};