Daniel Buřval
11/05/2021, 11:01 AMDaniel Buřval
11/06/2021, 4:04 PMdiv(classes = "w3-col m8 s12") {
p {
child(LinkComponent::class) {
<http://attrs.to|attrs.to> = "article/${props.article.name}"
button(classes = "w3-button w3-padding-large w3-white w3-border") {
b {
+"${props.readMore}»"
}
}
}
LinkComponent is basically solution for my problem. There is a good page on routing using react-dom-router https://dev.to/ebraimcarvalho/a-simple-way-to-redirect-react-router-dom-5hnn and https://dev.to/projectescape/programmatic-navigation-in-react-3p1l