DEV Community

Discussion on: How to Use class instead of className with Preact and TypeScript

Collapse
 
bb profile image
Benjamin Bock

In the example above, you also used svg elements with class. This didn't work for me, so I needed to add

  interface SVGProps<T> {
    class?: string;
  }

within the namespace.