JSFiddle - React, Tailwind, and code Playground
HTML
<a id="asdf" href="#asdf">#asdf</a>
<br>
<a id="qwerty" href="#qwerty">#qwerty</a>
JavaScript
$(window).bind('hashchange', function() {
var hash = document.location.hash;
var func = hash.replace('#', '');
eval(func + '()');
});
function asdf() {
alert('asdf function');
}
function qwerty() {
alert('qwerty function');
}