Sorry if this has already been asked and answered ...
# react
r
Sorry if this has already been asked and answered (documentation is somewhat sparse and scattered for kotlin-react). How do I import into Kotlin and use a JavaScript react library (for example https://react-bootstrap.github.io/)?
f
Copy code
external class HashRouterComponent : React.Component<RProps, RState> {
    override fun render(): ReactElement?
}
It doesn't look like a correct declaration of external component though it may work in this particular case
Correct would be this:
Copy code
external val HashRouterComponent: RClass<RProps>
c
You can also use this converter to take any javascript library that has typescript bindings and wrap it in kotlin https://github.com/Kotlin/ts2kt