chrome安装react-devtools开发工具插件

一、去git上下载react-devtools文件到本地,https://github.com/facebook/react-devtools react

二、进入到react-devtools-master文件夹,用npm安装依赖git

  npm --registry https://registry.npm.taobao.org installgithub

三、安装依赖成功后,打包一份扩展程序chrome

  npm run build:extension:chrome shell

四、出现一下部分信息,索命打包成功npm

  

五、生成文件:,react-devtools -> shells -> chrome -> build -> unpacked文件夹浏览器

六、打开chrome扩展程序chrome://extensions/,加载已解压的扩展程序,选择第3步中的生成的unpacked文件夹。ui

七、这时就会添加一个新的扩展程序react-devtools,并在你的浏览器右上角会有个react标志, 就表示成功啦。 blog

相关文章
相关标签/搜索