Overview of LiveReact
mainLiveReact is a library that allows you to use React components inside Phoenix LiveView. It bridges the gap between server-rendered HTML and client-side state management by enabling React to communicate over the LiveView websocket.
Key capabilities include:
- End-To-End Reactivity: Seamless integration with LiveView state.
- Incremental Prop Updates: Only changed data is sent over the wire to optimize performance.
- Phoenix Streams Support: Use Phoenix Streams directly as props.
- Form & Upload Encoding: Automatically handles changeset errors and upload states for React consumption.
- Server-Side Rendering (SSR): Supports SSR for React components.
- Advanced Features: Support for Tailwind, Dead Views, Lazy-loading, Slot interoperability, and a specialized
Linkcomponent for LiveView navigation.