data-* don't seem to have anything I can manipulat...
# javascript
r
data-* don't seem to have anything I can manipulate, even under attrs
k
I'm not sure, but you can try this thing:
Copy code
attrs { 
    attributes["data-toggle"] = "collapse"
    attributes["data-target"] = "#bs-example-navbar-collapse-1"
}
(inside
button { ... }
tag, of course)
f
correct
there is a simpler way since
@jetbrains/kotlin-react@16.0.0-pre.12
(included in
react-scripts-kotlin@2.1.0
):
Copy code
attrs["data-toggle"] = "collapse"
attrs["data-target"] = "#bs-example-navbar-collapse-1"
or
Copy code
attrs { 
    this["data-toggle"] = "collapse"
    this["data-target"] = "#bs-example-navbar-collapse-1"
}