You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Eric Pabst 386ca357d0
Simplify Compose in React example (#823)
4 years ago
..
gradle/wrapper
src/jsMain Simplify Compose in React example (#823) 4 years ago
.gitignore
README.md
build.gradle.kts Update web examples to use 0.5.0-build235 4 years ago
gradle.properties
gradlew
gradlew.bat
settings.gradle.kts

README.md

Use Compose(web) in React app

see ComposeInReactApp.kt

useCompose(...) is a custom React effect to render a content using Compose. It's not a part of any library.

Use React in Compose(web) app

UseReactEffect(...) is a custom Compose effect to render a content using React. It's not a part of any library.

see ReactInComposeApp.kt

How to use existing React components:

It requires adding external declarations. For example: ReactYoutubePlayer.kt

Here is a good tutorial - Using packages from NPM

Running web application

./gradlew jsBrowserRun