Skip to content

Instantly share code, notes, and snippets.

@kiok46
Created June 10, 2018 10:24
Show Gist options
  • Select an option

  • Save kiok46/2bccc1b6f1d68ed95db9eacc31a7c1a5 to your computer and use it in GitHub Desktop.

Select an option

Save kiok46/2bccc1b6f1d68ed95db9eacc31a7c1a5 to your computer and use it in GitHub Desktop.
Redux, Store, Actions, Reducers and logger: Get Started and a little further (1)
// store/index.js
import { createStore, compose, applyMiddleware } from ‘redux’;
import thunk from ‘redux-thunk’;
const store = createStore({
reducers,
{}, // default state of the application
compose(
applyMiddleware(thunk)
)
})
export default store;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment