Re:Web Components Will Outlive Your JavaScript Framework
by superchris on Thursday October 26, 2023 @04:16PM
(#38031150)
Since you mention that state management is an unsolved problem with Web Components, I thought I would share a project that aims to bring a solution: https://github.com/launchscout/live_state. The basic pattern and idea of LiveState is "dispatch events, subscribe to state". The events and state updates are sent over a websocket connection, and the front end and back end libraries are a thin layer over Phoenix Channels. Currently, event handler functions are written in Elixir, but work is underway to allow them to be written in any language that compiles to WebAssembly.
[ Parent
| on HN ]
There are no comments on this comment yet.