![](/img/trans.png)
[英]How can I fix eslint: react/destructuring-assignment error?
[英]How can I fix error message given by React Developper Tools on the default React page?
我想检查 React 应用程序上的元素,但我在 Google Chrome 上的 React Developper Tools 不起作用。
浏览器 React Developper 上的错误消息
This page is using the development build of React. 🚧
Note that the development build is not suitable for production.
Make sure to use the production build before deployment.
Open the developer tools, and "Components" and "Profiler" tabs will appear to the right.
成功构建和执行示例反应应用程序。
npm init react-app react_app
npm start
我可以在http://localhost:3000/
上看到默认的 React 屏幕,并且我没有编辑创建的 React 应用程序文件夹。
但是,我的 React Developper 无法使用红色警告图标。
运行这个命令
npm run build
我认为没有问题,只是您处于开发模式的信息
如果您在开发模式下访问带有 React 的站点,图标将具有红色背景: 带有开发版本 React 的网站上的 React DevTools 预计您在开发应用程序时使用开发模式,部署时使用生产模式您的应用程序给用户。
检查此 URL [ https://reactjs.org/docs/optimizing-performance.html#use-the-production-build]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.