
React学习笔记
蓝图Lily
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
react学习总结
react 中组件的定义方式 通过class实现组件定义 继承Component 通过function定义组件 使用React.createClass方式(已不再推荐使用) class定义的组件和function定义的组件有什么区别? class定义的组件有自己的局部状态和生命周期 function定义的组件在16.8之前是没有局部状态和生命周期的,在16.8之后的版本中增加了hooks,fun...原创 2019-10-30 19:46:39 · 255 阅读 · 0 评论 -
Warning: React does not recognize the computedMatch prop on a DOM element.
在react中使用Switch时,出现了报错 Warning: React does not recognize the computedMatch prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase comput...原创 2019-10-13 15:23:22 · 1630 阅读 · 0 评论