Skip to content

Commit

Permalink
Set middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
KoheiAsano committed Dec 18, 2018
1 parent 5c657eb commit b188ec8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ import Signup from './components/Signup';

import {BrowserRouter,Route} from 'react-router-dom';
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import { createStore, applyMiddleware } from "redux";
import rootReducer from './reducers'

const store = createStore(rootReducer);
import reduxThunk from "redux-thunk";
const store = createStore(rootReducer, {}, applyMiddleware(reduxThunk));


ReactDOM.render(
<Provider store={store}>
Expand Down

0 comments on commit b188ec8

Please sign in to comment.