mirror of
https://github.com/yldio/copilot.git
synced 2025-01-24 18:00:11 +02:00
42 lines
902 B
JavaScript
42 lines
902 B
JavaScript
|
const React = require('react');
|
||
|
const ReactHotLoader = require('react-hot-loader');
|
||
|
const ReactRouter = require('react-router');
|
||
|
const ReactRedux = require('react-redux');
|
||
|
|
||
|
const App = require('./containers/app');
|
||
|
const NotFound = require('./containers/not-found');
|
||
|
const Home = require('./containers/home');
|
||
|
const Print = require('./containers/print');
|
||
|
|
||
|
const store = require('./store');
|
||
|
|
||
|
const {
|
||
|
AppContainer
|
||
|
} = ReactHotLoader;
|
||
|
|
||
|
const {
|
||
|
BrowserRouter,
|
||
|
Miss,
|
||
|
Match
|
||
|
} = ReactRouter;
|
||
|
|
||
|
const {
|
||
|
Provider
|
||
|
} = ReactRedux;
|
||
|
|
||
|
module.exports = () => {
|
||
|
return (
|
||
|
<AppContainer>
|
||
|
<Provider store={store()}>
|
||
|
<BrowserRouter>
|
||
|
<App>
|
||
|
<Match exactly pattern='/' component={Home} />
|
||
|
<Match pattern='/print' component={Print} />
|
||
|
<Miss component={NotFound}/>
|
||
|
</App>
|
||
|
</BrowserRouter>
|
||
|
</Provider>
|
||
|
</AppContainer>
|
||
|
);
|
||
|
};
|