Kotlin-react existing component libraries


#1

Anyone have an example on how to use kotlin-react with existing component libraries? Kotlin-react looks wonderful, but one of the reasons I want to use react is because of the rich ecosystem.

Jason


#2

I might be wrong, but you have to write bindings for existing components.


#3

Yeah, I figured, just wondered if there were any examples of bindings that were written. I’m a little unsure how to call the existing javascript code, specifically for integration with kotlin-react. How do I return the right type? It’s a little confusing without an example.

Jason


#4

Here’s the example of react-router bindings, which don’t exist in kotlin-wrapper (or at least did not exist by the time we created kotlinconf application): component bindings and DSL.


#5

Thanks, that’s exactly what I was looking for!