Created
September 24, 2018 12:36
-
-
Save olegkalyta/07e3f7a45e9b4d3e65ceccc5f2252c21 to your computer and use it in GitHub Desktop.
Snippets for article: React-Native Performance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createStore, applyMiddleware } from 'redux' | |
import thunkMiddleware from 'redux-thunk' | |
import { composeWithDevTools } from 'redux-devtools-extension' | |
import reducer from './reducer' | |
import initialState from './initialState' | |
const middleware = [thunkMiddleware] | |
const store = createStore( | |
reducer, | |
initialState, | |
composeWithDevTools(applyMiddleware(...middleware)) | |
) | |
export default store |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment