Hi! Has anyone here tried to use react-router-dom ...
# javascript
d
Hi! Has anyone here tried to use react-router-dom inside the Kotlin fullstack example? I added the npm dependency and was able to include it via
runtime.wrappers.require("react-router-dom")
but I think I'm missing the types so that Kotlin can properly instantiate the components (currently I'm using
js("""new Router()""")
. I've tried to use ts2kt on index.d.ts from the definitely typed repo (https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-router-dom), but it notifies me that ImportDeclaration are unsupported. Any ideas how to get this working? 3 replies I use it. Give a look at the kodando libraries (https://github.com/danfma/kodando).