I have a navbar
and a Contact button in it. I would like to change this Contact button to a Back button based on the URL.
If the url is localhost:5000/
then let it be Contact, if the url is localhost:5000/about
then it should be Back.
Is this possible? I'm not sure which syntax can do this.
{localhost:5000/ && <button>Contact</button>}
{localhost:5000/about && <button>Back</button>}
This is obviously incorrect, I just wonder if there is a similar approach.