Phoenix App Clip

Use when mounting a React element into a Phoenix LiveView DOM node and moving data between the two — the "app-clip" integration pattern. Trigger this whenever the user wants to render a React component (or any client-side element) from inside a LiveView, embed an SPA-style widget in a LiveView page, use `createRoot`/`ReactDOM` inside a `phx-hook`, pass server data from Phoenix into a React tree, push events or state from React back to a LiveView's `handle_event/3`, share an auth token or trigger navigation from a mounted React component, or mentions app-clips, `phx-hook` `Mount*`, `phx-update` `"ignore"`, `pushEvent`/`handleEvent`, or React-in-LiveView integration. Use it even if they only say "render my React component in a LiveView" or "get data from Phoenix into React". This skill covers ONLY the integration seam — mounting and bidirectional data transfer. What the React component is, and which UI libraries it uses, is the user's own concern.

gsmlg-dev 0733e11 8 files · 18.4 KB Updated

File contents

gsmlg-dev/code-agent/tree/main/plugins/elixir-dev/skills/phoenix-app-clip commit 0733e11951

Frequently asked questions

npx skillmds@latest add gsmlg-dev/phoenix-app-clip