Skip to content

Instantly share code, notes, and snippets.

View IgorMing's full-sized avatar
🏠
Working from home

Igor Ming de Mesquita IgorMing

🏠
Working from home
View GitHub Profile
@IgorMing
IgorMing / store.ts
Created October 20, 2020 03:05
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())
);