我正在使用React应用程序,并不断遇到我不理解的错误。我在其他任何地方都找不到。我的理解是,在JSX元素中,我应该始终使用“ className”而不是“ class”属性。但是,我收到此警告:
index.js:2178 Warning: React does not recognize the `classsName` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `classsname` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
有人以前看过这个吗,或者知道我错了吗?