Skip to content

Commit

Permalink
rm store/ fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
happypeter committed Feb 8, 2018
1 parent d7fce96 commit 00ef9fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 11 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@ import React from 'react'
import App from './containers/App'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import store from './store'
import { createStore, applyMiddleware } from 'redux'
import reducer from './reducers'
import thunk from 'redux-thunk'
import { createLogger } from 'redux-logger'

const middleware = [thunk]
if (process.env.NODE_ENV !== 'production') {
middleware.push(createLogger())
}

const store = createStore(reducer, applyMiddleware(...middleware))

ReactDOM.render(
<Provider store={store}>
Expand Down
8 changes: 0 additions & 8 deletions src/store/index.js

This file was deleted.

0 comments on commit 00ef9fc

Please sign in to comment.