JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/jquery-2.2.3.min.js"></script>
<html>
<body style="height:1400px;">
</body>
</html>
JavaScript
$(window).scroll(function(){
if ($(window).scrollTop() == $(document).height() - $(window).height()){
alert("hit it bottom");
}
});