假设我要从React的home Component跳转到detail Component.
在home Component里,定义一个点击事件处理函数:

其实现源代码如下:

```JavaScript
const history = useHistory();
const handleProgressHeaderClick = () => {
history.push("/detail");
};```
测试:点击Progress list后,注意观察url和显示区域的变化:

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