I'm trying to make an anchor tag which will link to a location within the same page (like this)
However React-Router hijacks that, and and routes me to nothing, as I haven't established that link in the hierarchy. So it sends me to the root location of that name, instead of a location on the same page.
if i understand your question, you can use hashlocation instead of history location. like this
ReactRouter.run(routes, hashlocation, (Handler) => {
React.render(<Handler/>);
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With