JSFiddle - React, Tailwind, and code Playground
by bergb
JavaScript
var hash = (window.location.hash).replace('#', '');
if (hash.length == 0) {
//no hash do something
alert('no hash')
}
else {
//else do something with hash
alert('hash = '+hash)
}