score:2

Accepted answer
import { useHistory } from 'react-router-dom'
const history = useHistory();
history.push(...);

Related Query

More Query from same tag