这是怎么回事

来源:4-4 主页样式实现

pino宋

2018-01-31

warning.js?6327:33 Warning: React does not recognize the `childrenClassName` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `childrenclassname` instead. If you accidentally passed it from a parent component, remove it from the DOM element.

    in svg (created by SvgIcon)

    in SvgIcon (created by WithStyles(SvgIcon))

    in WithStyles(SvgIcon) (created by Home)

    in Home (created by pure(Home))


写回答

1回答

Jokcy

2018-02-01

你在原生dom上加了childrenClassName这个属性,这是原生dom不支持的属性

0
1
pino宋
非常感谢!
2018-04-02
共1条回复

React全栈+服务器渲染(ssr)打造社区Webapp

【毕设面试】只会写业务代码?out了,带你学会搭建属于自己的工程!

768 学习 · 414 问题

查看课程