mirror of
https://github.com/zoriya/flood.git
synced 2025-12-20 06:05:15 +00:00
Rearrange app directory structure
This commit is contained in:
18
client/source/scripts/app.js
Normal file
18
client/source/scripts/app.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import { createStore, applyMiddleware } from 'redux';
|
||||
import { Provider } from 'react-redux';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import thunkMiddleware from 'redux-thunk';
|
||||
|
||||
import App from './containers/App';
|
||||
import rootReducer from './reducers/rootReducer';
|
||||
|
||||
const createStoreWithMiddleware = applyMiddleware(thunkMiddleware)(createStore);
|
||||
|
||||
let store = createStoreWithMiddleware(rootReducer);
|
||||
|
||||
ReactDOM.render(
|
||||
<Provider store={store}>
|
||||
<App />
|
||||
</Provider>, document.getElementById('app')
|
||||
);
|
||||
Reference in New Issue
Block a user