Reactjs 修复此警告:React无法识别'basePath'`

Reactjs 修复此警告:React无法识别'basePath'`,reactjs,sails.js,react-admin,Reactjs,Sails.js,React Admin,我使用react admin,对于API,我使用useQuery,我在所有页面中都有此警告 此警告: Warning: React does not recognize the `basePath` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `basepath` instead. If you accid

我使用react admin,对于API,我使用useQuery,我在所有页面中都有此警告

此警告:

Warning: React does not recognize the `basePath` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `basepath` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
in div (created by ForwardRef(Grid))
in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
我怎么能修好它


谢谢

我不确定这是否是您的问题,因为没有提供任何代码,但我认为值得分享。我在使用SimpleForm时,从资源的创建和编辑组件中得到了相同的警告

我使用MUI网格来格式化这些组件

但是,SimpleForms只接受输入组件,如TextInput、AutocompleteInput、NumberInput等。解决方案似乎是创建一个自定义表单组件,该组件能够处理不同类型的输入

从那个人身上