Created
October 20, 2020 03:05
-
-
Save IgorMing/8e86e6bea46fb9951ac777161018abd3 to your computer and use it in GitHub Desktop.
a quick way to check how to configure redux, redux-thunk and reactotron
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 { applyMiddleware, compose, createStore } from 'redux'; | |
import thunkMiddleware from 'redux-thunk'; | |
import rootReducer from './reducers'; | |
import reactotron from '../reactotron.config'; | |
export default createStore( | |
rootReducer, | |
compose(applyMiddleware(thunkMiddleware), reactotron.createEnhancer()) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment