JSFiddle - React, Tailwind, and code Playground
HTML
<button>Scroll to the bottom</button>
JavaScript
for(var i = 100; i--;)
$('body').append('<br>lol');
$('button').click(function(){
$(window).scrollTop(document.body.scrollHeight);
});
<button>Scroll to the bottom</button>
for(var i = 100; i--;)
$('body').append('<br>lol');
$('button').click(function(){
$(window).scrollTop(document.body.scrollHeight);
});