Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
React - Config ReactDevtools
if (__DEV__) {
# 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