title: Vanilla JavaScript in Svelte
body: <p>I've been following a guide to collapse a sidebar. I realised that I cannot use the <code>$</code> because it's reserved in Svelte. Can someone guide me on how to make this work? Thanks :)</p>
  
  <pre><code>$(document).ready(function () {
      $('#sidebarCollapse').on('click', function () {
          $('#sidebar').toggleClass('active');
      });
  });
  </code></pre>