![](../../asset/images/user/BgImg_default.jpg)
简介
该用户还未填写简介
擅长的技术栈
未填写擅长的技术栈
可提供的服务
暂无可提供的服务
react用路由传递数据(useHistory)
引入:import { useHistory } from 'react-router-dom';下面那两个都要引入这个传输数据://注意先引入上面的const history = useHistory();function data(){history.push('需要数据的路由的url', { state:数据 })}接收数据:注意先引入上面的const history = useHistor
暂无文章信息