ITPub博客

首页 > 应用开发 > IT综合 > SAP UI5 Web Component不同React页面的跳转实现

SAP UI5 Web Component不同React页面的跳转实现

原创 IT综合 作者:i042416 时间:2020-02-20 08:44:46 0 删除 编辑

(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组件的加载:


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24475491/viewspace-2676309/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
测试

注册时间:2018-01-20

  • 博文量
    3822
  • 访问量
    1983347