Wrapping Up
LiveView allows you to write real-time interfaces with little to no JavaScript. LiveView builds on the power of Elixir, Phoenix Channels, and Phoenix PubSub to provide a stable and efficient base. With LiveView, you express your user interface and behavior in a declarative format. This would normally be difficult for real-time interactive applications that span multiple languages, but LiveView makes it feel intuitive. LiveView’s unidirectional data flow, combined with its declarative model, makes your applications clearer to read, extend, and maintain.
We rewrote the real-time product page from earlier chapters using LiveView. Amazingly, we didn’t change our application’s business logic at all. We wrote a LiveView that renders the ...
Get Real-Time Phoenix now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.