In react, What is the equivalent of using a
<a href >
You can simply put an
onClick at the top of the document if you want. The click event will bubble using normal event rules and you can access
event.target to find the origin. From there you can call
window.location.href = 'some-path' to emulate the experience.