(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的原创文章,请关注公众号"汪子熙":
(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的原创文章,请关注公众号"汪子熙":
本文标题:SAP UI5 Web Component不同React页面的跳
本文链接:https://www.haomeiwen.com/subject/ywugxhtx.html
网友评论