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.
 
 
 
 
Igor Demin 9c8fc2c910
Compose 1.5.11 examples (#3968)
12 months ago
..
.run
gradle/wrapper Update Android projects (#3566) 1 year ago
screenshots
src/jsMain
.gitignore
README.md
build.gradle.kts
gradle.properties Compose 1.5.11 examples (#3968) 12 months ago
gradlew
gradlew.bat
settings.gradle.kts

README.md

Use Compose HTML Library 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 HTML Library

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

  • To run, launch command: ./gradlew :jsBrowserRun
  • Or choose browser configuration in IDE and run it.
    browser-run-configuration.png