© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Sandeep Panda
co-founder, Hashnode
Can you try this?
{ (pathName !== '/login' || pathName !== '/signup' || pathName !== '/account') && <Footer /> }
Mrudang Shah
Software Engineer
I have also tried like this at very first... but this method also not working.
Mrudang Shah How about:
{ ((pathName !== '/login') || (pathName !== '/signup') || (pathName !== '/account')) && <Footer /> }
That is also not working... i have tried almost all the possibilities.
Diego Bernal
Front-End Engineer
Are you sure you are getting the expected values for pathName? Might be worth throwing a console.log(pathName) in there as a sanity check.
pathName
console.log(pathName)