安装React Devtools调试工具的步骤:
二、进入到react-devtools-master文件夹,用npm安装依赖
npm --registry https://registry.npm.taobao.org install
复制代码
三、安装依赖成功后,咱们即可以打包一份扩展程序出来
npm run build:extension:chrome
复制代码
四、打开chrome扩展程序chrome://extensions/,加载已解压的扩展程序,选择第3步中的生成的unpacked文件夹。这时就会添加一个新的扩展程序react-devtools,并在你的浏览器右上角会有个react标志, 就表示成功啦。