title: How can I convert this jQuery in react code?
body: <p>I am very new to JavaScript and I need to convert the code bellow in order to use it for a react project. This action toggles on/off the sidebar of a page. Any help will be appreciated.</p>
  
  <pre><code> $("#menu-toggle").click(function(e) {
  
    e.preventDefault();
  
    $("#wrapper").toggleClass("toggled");
  
  });
  </code></pre>