道具类型失败:不支持道具“ children”请删除

问题描述

我在项目中第一次使用Material UI选项卡,一切正常,但是运行项目时控制台出现一个错误 here is what i get in console and here is an example of the code where I use Tabs 谁能帮帮我吗?谢谢

解决方法

检查Tab必须是一个自闭元素,这就是为什么它会发出警告,因为您使用它来传递h4时,应该使用道具而不是将显式子元素传递给这些组件。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...