原文:React does not recognize the `colStyle` prop on a DOM element. If you intent

在ant的List组件中,使用了其他组件 可以使用其他组件,但要在合适的位置 ,应该是在List中的List.Item标签中使用其他组件 列表加卡片,就完成了 ...

2020-05-23 18:29 0 3181 推荐指数:

查看详情

warning: React does not recognize the xxx prop on a DOM element

这是React不能识别dom元素上的非标准attribute报出的警告,最终的渲染结果中React会移除这些非标准的attribute。 通常{...this.props}和cloneElement(element, this.props)这两种写法,会将父级别无用的attribute传递到子级 ...

Sun Oct 21 00:57:00 CST 2018 0 7537
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM