JSFiddle - React, Tailwind, and code Playground

by Milan Gladiš

HTML

<div style="height: 4000px">Scroll down!</div>

JavaScript

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