对于更深层的组件,也不需要借助高阶组件 withRouter ,帮助我们拿到路由参数。 const Detail = () => { const { id } = useParams() return ( ...
確定! 回上一頁