Last active
August 16, 2018 02:22
-
-
Save raivieiraadriano92/a3ecf52da89a6b7883774286724bd418 to your computer and use it in GitHub Desktop.
React - Config ReactDevtools
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
if (__DEV__) { | |
require('react-devtools'); | |
} |
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
# 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