# `LiveLift`
[🔗](https://github.com/Manuel1471/LiveLift/blob/main/lib/live_lift.ex#L1)

Opt-in browser interactions for Phoenix LiveViews and LiveComponents.

Add `use LiveLift` to a routed LiveView or stateful LiveComponent and put
`@client true` before a supported `handle_event/3`. LiveLift compiles the handler and its
existing `~H` template for immediate browser prediction. LiveView still runs
the original handler on server-owned state and sends the authoritative result.

Use `@client :local` for transient assigns such as a list's preview order.
Once the hook mounts, this action runs without sending a LiveView event.

Leave events unmarked when Phoenix should handle them directly, such as
persistence and permission checks.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
