Examples

Each example shows a live preview, the LiveView that drives it, and the React component it renders — the real source, embedded at compile time, so what you read is what runs.

Some examples run inside a LiveView with a socket. Others are plain controller-rendered pages, showing that React components work without a LiveView at all. Each example says which it is.

Getting Started

Events

Props & data

Forms

Navigation

Advanced