Hey all, is there an easy way to style router link...
# react
b
Hey all, is there an easy way to style router links? Currently, I'm doing something jenky like this.
Copy code
routeLink("/contact") {
    ref {
        it?.style?.textDecoration = "none"
        it?.style?.color = "inherit"
    }
    +"Jane Rogers"
}
2
t
It looks like common stylization and you can configure it in container:
Copy code
styledHeader {
    css {
        a {
            textDecoration(...)
            color = ...
        }
    }

    routeLink("/1")
    routeLink("/2")
}
b
Sweet, this works perfectly. Thanks.