Skip to content

Instantly share code, notes, and snippets.

@olegkalyta
Created September 24, 2018 12:36
Show Gist options
  • Save olegkalyta/07e3f7a45e9b4d3e65ceccc5f2252c21 to your computer and use it in GitHub Desktop.
Save olegkalyta/07e3f7a45e9b4d3e65ceccc5f2252c21 to your computer and use it in GitHub Desktop.
Snippets for article: React-Native Performance
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