SAP UI5 Web Component不同React页面的跳转实现
发布日期:2021-06-30 14:09:15 浏览次数:2 分类:技术文章

本文共 225 字,大约阅读时间需要 1 分钟。

(1) 从react-router-dom里导入Switch,Route和Redirect组件:

(2) 路径/home指定成加载Home Component ,/detail则加载Detail Component.

文件Home.jsx和Detail.jsx分别实现Component:

(3) 测试:url后加上/home,则加载home Component:

/detail组件的加载:

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

转载地址:https://jerry.blog.csdn.net/article/details/104233005 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:SAP UI5 Web Component的React表格控件用法
下一篇:SAP UI5 Web Component React应用如何在Component之间跳转

发表评论

最新留言

感谢大佬
[***.8.128.20]2024年04月23日 15时09分01秒