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