How could I do that?
# javascript
r
How could I do that?
k
You should follow the logic behind these declarations
So, you should provide access to
activeClassName
property
as well as
className
See this declarations among stolen ones?
Copy code
external interface LinkProps : RProps {
    var to: String
}
Add
var className: String
And then modify this DSL declaration:
Copy code
fun RBuilder.routeLink(to: String, handler: RHandler<RProps>) = child(LinkComponent::class) {
    attrs {
        <http://this.to|this.to> = to
    }
    handler()
}
add
className: String? = null
parameter and pass it to corresponding property in
attrs