I need to a add a scroll to top button in my Blazor server-side app. I have found this How T o - Scroll Back To Top Button article and can follow it till it comes to add the javascript code.
As I'm a newbie in js, how do I add the code in a Blazor app? (I already have a site.js file in wwwroot.