Skip to content

ptitjes/compose-browser-demo

 
 

Repository files navigation

Compose browser demos

This is a demo of Compose running in the browser using Kotlin/JS and original compiler. The API here is not representative of anything final (actually, almost non-existent), so feel free to play with it and come up with anything on your own. Compiler plugin is NOT QUITE STABLE yet, if you encounter any bugs/crashes, please report :).

NOTE: this is not an "official" Compose/JS implementation from JB/Google, but just an example to play/experiment with.

Where to look?

  • . - Playground
  • prelude - Some basic HTML definitions
  • libs - Prebuilt artifacts of runtime and compiler plugin

Inside of prelude, see JsApplier for an example of how DOM elements are created.

Where's the prebuilts coming from?

Prebuilt artifacts are generated from CRs in aosp repo ( one, two ). I will try to keep them in sync while it makes sense.

Currently these artifacts are not published anywhere, but you can use this template to include it in other projects.

See also

About

Demo of Jetpack Compose working in the browser with Kotlin/JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Kotlin 99.3%
  • HTML 0.7%