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 0b429b6ac9
Update all versions for 1.3.1 + update Changelog (#2856)
2 years ago
..
.run examples README and .run configurations (#2355) 2 years ago
gradle/wrapper update gradle wrapper 7.5.1 (#2352) 2 years ago
screenshots Fix examples, templates (#2359) 2 years ago
src/jsMain Update compose-web examples and readme about effects (#2395) 2 years ago
.gitignore
README.md Fix examples, templates (#2359) 2 years ago
build.gradle.kts Fix Web examples 2 years ago
gradle.properties Update all versions for 1.3.1 + update Changelog (#2856) 2 years ago
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

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