在运行一个react项目的时候浏览器控制台会提醒你去安装react devtools调试工具
Download the React DevTools for a better development experience: https://fb.me/react-devtools
但是上面的链接我基本上没打开过
2、进入到react-devtools-master文件夹,用npm安装依赖
npm --registry https://registry.npm.taobao.org install

3、安装依赖成功后,我们便可以打包一份扩展程序出来
npm run build:extension:chrome

出现上面的部分就说明安装成功了
并且会在你的项目目录中生成一个新的文件夹,react-devtools -> shells -> chrome -> build -> unpacked文件夹
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/212239.html原文链接:https://javaforall.net
