Initial commit from boilerplate
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import React, {Component} from 'react';
|
||||
import { createStore, applyMiddleware, combineReducers } from 'redux';
|
||||
import { Provider } from 'react-redux';
|
||||
import thunk from 'redux-thunk';
|
||||
|
||||
import * as reducers from '../reducers';
|
||||
import CounterApp from './counterApp';
|
||||
|
||||
const createStoreWithMiddleware = applyMiddleware(thunk)(createStore);
|
||||
const reducer = combineReducers(reducers);
|
||||
const store = createStoreWithMiddleware(reducer);
|
||||
|
||||
export default class App extends Component {
|
||||
render() {
|
||||
return (
|
||||
<Provider store={store}>
|
||||
<CounterApp />
|
||||
</Provider>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user