I am trying to add the "class" attribute to a thir...
# javascript
g
I am trying to add the "class" attribute to a third party component I imported into my kotlin-react project. How can I do that since "class" is a reserved word and attrs["class"] = "myclass" is not possible since RClass has 'attrs' defined as a function that takes a lambda
b
Copy code
foo.`class`
Copy code
attrs {
  this["class"] = "myclass"
}
g
thanks both of those worked