JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<div><div>
<div class="wsb-htmlsnippet-element"><a class="scroll" href="#things">Supported Things</a></div>
</div></div>
<div class="longdiv">aeaeaeae</div>
<div><div><div id="things">Things</div></div></div>
CSS
.longdiv { height: 2000px; }
JavaScript
$(".scroll").click(function(event){
event.preventDefault();
//calculate destination place
var dest=0;
if($(this.hash).offset().top > $(document).height()-$(window).height()){
dest=$(document).height()-$(window).height();
}else{
dest=$(this.hash).offset().top;
}
//go to destination
$('html,body').animate({scrollTop:dest}, 1000,'swing');
});