anyone knows how to get the `PATH_VALUE` value ins...
# javascript
d
anyone knows how to get the
PATH_VALUE
value inside route() in Kotlin/React ?
Copy code
browserRouter {
    switch {
        route("/country/*") {
            getCountry(PATH_VALUE.split("/")[2])
            ...
        }
	...
    }
}
h
Here's an example without manual parsing that should work for you as well y shouldnt it? https://github.com/JetBrains/kotlin-wrappers/tree/master/kotlin-react-router-dom
d
thanks!