reactjs - “React 无法识别 DOM 元素上的 `classsName` 属性”
问题描述
我正在开发一个 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.
有人以前见过这个或知道我做错了什么吗?
解决方案
推荐阅读
- jwt - 不使用黑名单的 JWT 注销功能?
- javascript - ValueGetter 不适用于分组行
- mysql - Laravel:如何更改变形表中的默认索引键长度
- javascript - 使用 chrome 扩展的 printerProvider 侦听器定位打印机
- matlab - 如何保护将在已部署应用程序中读取/写入的文件
- java - 如何将消息从 servlet 传递到引导模式
- django - 使用 Django 2 中的数据库条目填充的引导导航栏下拉列表
- react-native - 插件/预设文件不允许导出对象,只有功能
- javascript - 如何使用户能够选择两个无线电并以它们的值作为参数执行一个函数
- ios - 如何在发布版本中获取 iOS 堆栈跟踪?