vendredi 10 août 2018

Hiding footer from multiple subpages in react js

I would like to hide footer from multiple subpages but when i use

{ window.location.pathname !== "/subpage1" &&<footer /> }
{ window.location.pathname !== "/subpage2" &&<footer /> }

It does not work but when using just one of these its works how to fix it ?




Aucun commentaire:

Enregistrer un commentaire