Skip to content
/ live_react Public
forked from mrdotb/live_react

✨ React inside Phoenix LiveView with seamless end-to-end reactivity

License

Notifications You must be signed in to change notification settings

ci/live_react

 
 

Repository files navigation

Hex.pm Hexdocs.pm GitHub

LiveReact

React inside Phoenix LiveView.

logo

Features

  • End-To-End Reactivity with LiveView
  • 🔋 Server-Side Rendered (SSR) React
  • 🦄 Tailwind Support
  • 💀 Dead View Support
  • 🐌 Lazy-loading React Components
  • 🚀 Amazing DX with Vite

Resources

Example

Visit the demo website to see examples of what you can do with LiveReact.

You can also check out the PhoenixAnalytics project for a real-world example.

Why LiveReact

Phoenix LiveView enables rich, real-time user experiences with server-rendered HTML. It works by communicating any state changes through a websocket and updating the DOM in realtime. You can get a really good user experience without ever needing to write any client side code.

LiveReact builds on top of Phoenix LiveView to allow for easy client side state management while still allowing for communication over the websocket.

Installation

see Installation

Roadmap 🎯

  • Pre-build SSR components for static props
  • useLiveForm - an utility to efforlessly use Ecto changesets & server-side validation, similar to HEEX
  • Add support for Phoenix streams as props

Credits

I was inspired by the following libraries:

I had a need for a similar library for React and so I created LiveReact 👍

About

✨ React inside Phoenix LiveView with seamless end-to-end reactivity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 66.0%
  • JavaScript 16.1%
  • HTML 14.4%
  • Dockerfile 2.2%
  • CSS 0.6%
  • Shell 0.4%
  • Other 0.3%