vendredi 22 décembre 2017

difference between updating window location and pushing route to react router

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