Skip to content

Instantly share code, notes, and snippets.

@IgorMing
Created October 20, 2020 03:05
Show Gist options
  • Save IgorMing/8e86e6bea46fb9951ac777161018abd3 to your computer and use it in GitHub Desktop.
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
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