How to Hide navbar & Footer on Authentication Pages in ReactJs

So, Tayday Iwas working on one of my projects and I felt that this is simple script that can help many beginners out there building up their own projects and so I decided to put this here.

Basically, I am Hiding My Navigation bar and Footor Bar on my Login/Signup pages using this simple script using withRouter(). I have attached the screenshot below.

na.png

If you have issues do comment and Iwell be haap to Help.