1
votes

I have code that I am trying to use, the issue I am having is that it is proving more difficult than it probably should be. My code currently displays text but does not go to my Important.js file once clicked on. I have looked at the < Link > element other people tend to use, but this cause issues since I need my anchor and Link disrupts the rest of my code and simply results in a constant failed to render error. Is there a way around this so that I could take users to one of my pages as opposed to only URLs. Also, at the moment, clicking on text refreshes the app and returns users to the same page they found the text i.e. it does not even temporarily take users to Important.js

 <a className="menu-second-half" href="/Important">
    Important
  </a>
Define "page" in this context. If you mean another route with React Router, then <Link> is the way to go. (See also How to Ask and minimal reproducible example)Quentin
"So that I could take users to one of my pages as opposed to only URLs": this doesn't really make much sense. Can you clarify? Welcome to SO, btw.Andy