JSFiddle - React, Tailwind, and code Playground
HTML
<div style="height: 4000px">Scroll down!</div>
JavaScript
$(window).scroll(function() {
if($(window).scrollTop() + $(window).height() == $(document).height()) {
alert("bottom!");
}
});