React中控制台警告
1、dll_lib.js:1 Warning: bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See FarmersInfoList
问题分析:出现这种错误一般是在React中使用.bind(this,xx)造成的
解决办法:将this用null替换,如:.bind(null,xx);
2、[React Error]: Target container is not a DOM element
问题分析:webpack生成的js文件放在head里面了,此时DOM还没有建立完毕
解决办法:将js文件放在HTML底部
3、dll_lib.js:1 Warning: Animate: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.
4、dll_lib.js:1 Warning: It looks like you're using a minified copy of the development build of React. When deploying React apps to production, make sure to use the production build which skips development warnings and is faster. See https://fb.me/react-minification for more details.
5、Warning: the children of Select
should be Select.Option
or Select.OptGroup
, instead of Option
.
首先查看是否写这行代码:const Option = Select.Option;
第二查看render里面的Option必须首字母大写
最新文章
- C # 数据绑定(1)——将DataTabel的data添加ListView
- 纯Shading Language绘制HTML5时钟
- SQL查询中in、exists、not in、not exists的用法与区别
- JMeter监控Linux服务器资源案例
- java多线程的使用1
- Java基础知识强化之IO流笔记31:转换流出现的原因和格式
- Linux内核监控模块-2-系统调用表地址的获取(Linux内核版本3.13)
- nodejs and db
- 关于java web开发需要哪些技术要求(简单的web界面管理系统)
- Codeforce 水题报告(2)
- spring之注解详解
- client.go
- python_while
- JDK8源码之Arrays
- Ajax提交from表单
- 有趣的线段树模板合集(线段树,最短/长路,单调栈,线段树合并,线段树分裂,树上差分,Tarjan-LCA,势能线段树,李超线段树)
- 修改Oracle redo.log文件的大小
- LINUX的SSH下FTP到远程服务器Entering Passive Mode失败解决
- 本地搭建ELK系统
- 35.Docker安装Mysql挂载Host Volume