how to add toggle class in javascript using css modules

CSS
onClick() {
    alert("clicked");
    $('.'+ styles.transform ).toggleClass(styles.transform-active);
  }
Source

Also in CSS: