top | item 38100965

(no title)

floodfx | 2 years ago

The link that @helb sent is a good summary from the Phoenix docs but it is sort of hard to "get" just by reading about it. My attempt to be more concise is "a LiveView is a server process that receives events (clicks, form input, etc) from the browser, updates its state on the server, and sends back diffs which are applied to the browser."

You can think about it as a server-rendered HTML page that gets updated via Websocket updates.

That doesn't really do it justice either. I think writing a little bit of code and running a LiveView server is probably the best way to truly grok it.

Like any new paradigm, it takes a bit of a mind shift to see the value.

If you can, try running the Undead example server by downloading the repo and running:

`mvn package exec:exec`

discuss

order

No comments yet.