Skip to content

Instantly share code, notes, and snippets.

@matheusnascgomes
Created July 1, 2018 01:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matheusnascgomes/6f919741256c78c10cdbac1948cb2504 to your computer and use it in GitHub Desktop.
Save matheusnascgomes/6f919741256c78c10cdbac1948cb2504 to your computer and use it in GitHub Desktop.
Configuração padrão do reactotron para projetos React / ReactJS
import Reactotron from 'reactotron-react-js';
import { reactotronRedux } from 'reactotron-redux';
import sagaPlugin from 'reactotron-redux-saga';
if (process.env.NODE_ENV === 'development') {
const tron = Reactotron.configure()
.use(reactotronRedux())
.use(sagaPlugin())
.connect();
tron.clear();
console.tron = tron;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment