问题描述
我在项目中第一次使用Material UI选项卡,一切正常,但是运行项目时控制台出现一个错误 here is what i get in console and here is an example of the code where I use Tabs 谁能帮帮我吗?谢谢
解决方法
检查Tab
必须是一个自闭元素,这就是为什么它会发出警告,因为您使用它来传递h4
时,应该使用道具而不是将显式子元素传递给这些组件。
我在项目中第一次使用Material UI选项卡,一切正常,但是运行项目时控制台出现一个错误 here is what i get in console and here is an example of the code where I use Tabs 谁能帮帮我吗?谢谢
检查Tab
必须是一个自闭元素,这就是为什么它会发出警告,因为您使用它来传递h4
时,应该使用道具而不是将显式子元素传递给这些组件。