Skip to content

Instantly share code, notes, and snippets.

@raivieiraadriano92
Last active August 16, 2018 02:22
Show Gist options
  • Save raivieiraadriano92/a3ecf52da89a6b7883774286724bd418 to your computer and use it in GitHub Desktop.
Save raivieiraadriano92/a3ecf52da89a6b7883774286724bd418 to your computer and use it in GitHub Desktop.
React - Config ReactDevtools
if (__DEV__) {
require('react-devtools');
}
# run
$ yarn add --dev react-devtools
# create the src/config/DevToolsConfig.js file as what is attached
# add in file src/index.js the line:
# import 'config/DevToolsConfig';
# in your package.json file, in "script" add:
# "react-devtool": "react-devtools"
# run
$ adb reverse tcp:8097 tcp:8097
$ yarn run react-devtool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment