I'm using react-scroll and I would like to know if it's possible to remove the hash from the url, currently I have a couple of views in a single page, those views have their own ID in order to use react-scroll, so, I just wanted to know if there is an option to remove it, I saw a cople of solutions like
<script>
function removehash(){
setTimeout(function(){
history.replaceState("", document.title, window.location.pathname);
});
}
</script>
but didnt work, can someone help me? Thanks.