JetBrains / compose-for-web-demos

Historical repository of early Compose for Web effort.
170 stars 6 forks source link

Integration with other frameworks #3

Open altavir opened 3 years ago

altavir commented 3 years ago

An important thing in JS ecosystem is the integration with existing libraries and frameworks. So there should be examples with integrations with:

epabst commented 3 years ago

This has been solved! See https://github.com/JetBrains/compose-jb/blob/master/examples/web_landing/src/jsMain/kotlin/com/sample/content/CodeSnippets.kt#L262-L264

epabst commented 3 years ago

From https://kotlinlang.slack.com/archives/C01F2HV7868/p1620840823134500 Oleksandr Karpovich [JB] 8 hours ago I made a quick naive example (kind of PoC) https://github.com/JetBrains/compose-jb/tree/web-with-react-component-example/examples/web-with-react it integrates https://www.npmjs.com/package/react-youtube-lite (wraps it in @Composable) hope that gives some idea. Let us know if it's sufficient and what advanced examples you would like to see. UPD: https://play.kotlinlang.org/hands-on/Building%20Web%20Applications%20with%20React%20and%20Kotlin%20JS/07_Using_Packages_From_NPM - this might help with making kotlin wrappers for components from npm