There are several ways of creating an HTML button, that acts like a link (i.e., clicking on it the user is redirected to the specified URL). Sign in For external links, just use . I just ran into this issue and began implementing my own component similar to the one you describe above to handle the logic, but it seemed so basic and obvious a concern and such a common scenario that I stopped to check the react-router docs and issues for the "built-in" solution that I was certain existed. We’ll occasionally send you account related emails. ; hash – (type: string) The URL hash fragment. (It seems kind of obvious in retrospect.) While using this site, you agree to have read and accepted our terms of use and privacy policy. Add an inline onclick event¶ You can add an inline onclick event to the