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.
 
 
 
 
Shagen Ogandzhanian 36295121a2 Remove web samples completely 3 years ago
..
gradle/wrapper Compose-Web with React examples (#693) 3 years ago
src/jsMain Simplify Compose in React example (#823) 3 years ago
.gitignore Compose-Web with React examples (#693) 3 years ago
README.md Compose-Web with React examples (#693) 3 years ago
build.gradle.kts Remove web samples completely 3 years ago
gradle.properties Compose-Web with React examples (#693) 3 years ago
gradlew Compose-Web with React examples (#693) 3 years ago
gradlew.bat Compose-Web with React examples (#693) 3 years ago
settings.gradle.kts Add google repo for all web modules, samples and examples 3 years ago

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