Skip to content

Commit

Permalink
Merge 8c3f19c into eb5f43a
Browse files Browse the repository at this point in the history
  • Loading branch information
mendozabree committed Oct 31, 2018
2 parents eb5f43a + 8c3f19c commit 20e7f0a
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 4 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"react": "^16.6.0",
"react-dom": "^16.6.0",
"react-router-dom": "^4.3.1",
"react-scripts": "2.0.5"
"react-scripts": "2.0.5",
"react-redux": "^5.1.0",
"redux": "^4.0.1",
"redux-thunk": "^2.3.0"
},
"scripts": {
"start": "react-scripts start",
Expand Down
10 changes: 7 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import React from 'react';
import { BrowserRouter } from 'react-router-dom';
import { Provider } from 'react-redux';
import Routes from './components/routes';
import './App.css';
import Store from './store';

const App = () => (
<BrowserRouter>
<Routes />
</BrowserRouter>
<Provider store={Store}>
<BrowserRouter>
<Routes />
</BrowserRouter>
</Provider>
);

export default App;
Empty file added src/actions/index.js
Empty file.
8 changes: 8 additions & 0 deletions src/reducers/rootReducer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { combineReducers } from 'redux';

const rootReducer = combineReducers({
// dummy object for reducer
f: () => ({}),
});

export default rootReducer;
12 changes: 12 additions & 0 deletions src/store.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import rootReducer from './reducers/rootReducer';

const Store = createStore(
rootReducer,
{},
applyMiddleware(thunk),
);


export default Store;

0 comments on commit 20e7f0a

Please sign in to comment.