JSFiddle - React, Tailwind, and code Playground

by pradeep

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/dot-luv/jquery-ui.css">
<div style="height: 4000px">Scroll down!</div>

JavaScript

$(window).scroll(function() {   
   if($(window).scrollTop() + $(window).height() == $(document).height() - 100) {
       alert("bottom!");
   }
});