📅  最后修改于: 2022-03-11 15:04:19.990000             🧑  作者: Mango
`yarn add react-router` or `npm install react-router`
import { useHistory } from 'react-router'
const history = useHistory()
history.go(0)