美文网首页SAP 修行
SAP UI5 Web Component React应用如何在

SAP UI5 Web Component React应用如何在

作者: 华山令狐冲 | 来源:发表于2020-02-09 11:28 被阅读0次

假设我要从React的home Component跳转到detail Component.

在home Component里,定义一个点击事件处理函数:

其实现源代码如下:

 const history = useHistory();
  const handleProgressHeaderClick = () => {
    history.push("/detail");
  };

测试:点击Progress list后,注意观察url和显示区域的变化:


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


相关文章

网友评论

    本文标题:SAP UI5 Web Component React应用如何在

    本文链接:https://www.haomeiwen.com/subject/doygxhtx.html