material-ui - x-grid components option/prop 抛出 Invalid Element type 错误
问题描述
我正在为组件使用 components 选项/prop,x-grid
如下所示:
components={{
Checkbox: {
checkedIcon: () => <Check />,
icon: () => <Clear />,
},
}}
我尝试了几种排列来避免以下错误:
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
Check the render method of `ForwardRef`.
有没有人看到我做错了什么明显的事情?
先感谢您!
解决方案
推荐阅读
- tensorflow - 在 Tensorflow 中训练模型时如何使用半正弦函数作为损失函数?
- r - 对变量排序并用另一个变量 R 分隔
- node.js - Vue.js 应用程序 - 视频元素拒绝在移动设备上流式传输
- javascript - 我尝试通过数据库验证数据以使用 Bootsrap 模型和 ajax 与 PHP 登录,但它不工作
- python - PCA -- 使用 Numpy 计算缩减大小的矩阵
- flutter - 如何用 bloc 过滤列表?
- java - 如何逐行比较两个文本文件并提取与另一个文件不同的两行?
- python - Python-如何将if条件中的值存储到带有附加的列表中
- apache - 本地风暴集群设置 - 未执行
- javascript - 为什么可以将参数传递给javascript中没有参数的函数?