I needed to change the route of my application. I'm using react and there are two ways to do. 1) router.push(pathObject) and 2) window.location = pathName
which is the right way to do and why?
Aucun commentaire:
Enregistrer un commentaire