title: Blazor - Add Active Class to Current Element
body: <p>Trying to develop a website fully in Blazor</p>
  
  <p>I'm trying to figure out how to add e.g. active class to the currently selected element.
  I have a side menu bar and it would be awesome to know on which page the user is.</p>
  
  <p>Found this <a href="https://www.w3schools.com/howto/howto_js_active_element.asp" rel="nofollow noreferrer">JavaScript solution</a> but I wanted to do it via #c</p>
  
  <p>Any ideas on how to implement it? </p>