Welcome

Compose by Example is an interactive introduction to Jetpack Compose and Compose Multiplatform.

What stands out from the official docs is that the example code you see in each section is exactly what is executed on the webiste. This is possible because Compose by Example is written in Compose Multiplatform and then compiled into WasmJS. Because it is interactive, you can click and type in the examples to learn how the code affects the UI.

Features

  • Examples are interactive: Users can play with the examples directly in the website to learn how the code changes the UI.
  • Examples are complete programs: Users can copy & paste the code in their own IDE and have it run locally.
  • Live state observation: Examples which feature state changes print their state similar to debug mode.