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.
 
 
 
 
Oleksandr Karpovich 4c01cbdec7
Update kotlin version in examples (#4844)
7 months ago
..
.run Compose Multiplatform 1.4.0 docs (#3044) 2 years ago
gradle/wrapper Migrate all samples to the new resources library (#4386) 10 months ago
screenshots Compose Multiplatform 1.4.0 docs (#3044) 2 years ago
src/jsMain Compose Multiplatform 1.4.0 docs (#3044) 2 years ago
.gitignore Compose Multiplatform 1.4.0 docs (#3044) 2 years ago
README.md Compose Multiplatform 1.4.0 docs (#3044) 2 years ago
build.gradle.kts Update kotlin version in examples (#4844) 7 months ago
gradle.properties Update kotlin version in examples (#4844) 7 months ago
gradlew Update gradle wrappers (#3050) 2 years ago
gradlew.bat Update gradle wrappers (#3050) 2 years ago
settings.gradle.kts Update kotlin version in examples (#4844) 7 months ago

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