前端项目实战贰佰肆拾贰react-admin+material ui-react-admin-resource默认生成路由

const App = () => (
<Admin dataProvider={dataProvider} dashboard={Dashboard}>
<Resource name="customers" list={CustomerList} edit={CustomerEdit} />
<Resource name="orders" list={OrderList} edit={OrderEdit} options={{ label: 'Orders' }} />
<Resource name="invoices" list={InvoiceList} />
<Resource name="products" list={ProductList} edit={ProductEdit} create={ProductCreate} />
<Resource name="categories" list={CategoryList} edit={CategoryEdit} create={CategoryCreate} />
<Resource name="reviews" list={ReviewList} />
<CustomRoutes>
<Route path="/segments" element={<Segments />} />
</CustomRoutes>
</Admin>
);

运行结果

 

posted @   前端导师歌谣  阅读(6)  评论(0编辑  收藏  举报  
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!
历史上的今天:
2022-08-20 springMvc40-restful的crud的项目原型介绍
2022-08-20 springMvc39-restful的crud实现增加方式
2022-08-20 springMvc38-restful的crud实现删除方式
2022-08-20 springMvc37-Unknow tag(c:forEach)错误解决办法,jstl.jar包以及standard.jar包下载与导入
2022-08-20 springMvc36-JavaEE-JSP基础-EL表达式和JSTL标签库(Taglibs)
2022-08-20 springMvc35-jstl的jar包的下载
2022-08-20 springMvc34-restful的put
点击右上角即可分享
微信分享提示