Wpis z mikrobloga

@Dziecipisupopoland: Zadne SPA czy React+Router. Tam masz prosty kod js np. z użyciem jQuery

$("nav a").click(function(event) {
event.preventDefault();

if(this.hash !== "") {
$('html, body').stop(true).animate({
scrollTop: $(this.hash).offset().top
},400);
}
});