【发布时间】:2019-04-16 03:26:31
【问题描述】:
我想在我的 react-admin 项目的 Edit 和 Show 页面上创建一个自定义的两列网格布局。我想只使用一个<SimpleForm>,在左列显示选择框和图像上传区域,在右列显示文本输入。
如果我在 <SimpleForm> 和 <EditController> 组件下使用 div 或 <Card> 组件,则会收到错误消息。
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.
有没有什么方法可以创建没有这个错误的布局?
【问题讨论】:
-
首先看看你是怎么做的会很有用,这样我们就可以看到错误来自哪里。
-
react-admin 的相关 GitHub 问题:github.com/marmelab/react-admin/issues/…
标签: reactjs react-admin