Withrouter en React-Router V6
const push: NavigateFunction = useNavigate()
Restu Wahyu Saputra
const push: NavigateFunction = useNavigate()