4 ms·
> Let the browser maintain a DOM tree that templates over a JSON object, then reactive-ly update and it's an amazing experience Totally agreed. I even pulled o
by methyl 6y ago
> Let the browser maintain a DOM tree that templates over a JSON object, then reactive-ly update and it's an amazing experience
Totally agreed. I even pulled off an Elixir library as a POC to show this concept, here's an example project: https://github.com/surferseo/live_data/tree/master/examples/phoenix_livedata_todomvc https://github.com/surferseo/live_data/tree/master/examples/... (most relevant part of API is here: https://github.com/surferseo/live_data/blob/master/examples/phoenix_livedata_todomvc/assets/js/containers/TodoList.js#L22 https://github.com/surferseo/live_data/blob/master/examples/... and here: https://github.com/surferseo/live_data/blob/master/examples/phoenix_livedata_todomvc/lib/phoenix_livedata_todomvc_web/live_data/todo_state.ex https://github.com/surferseo/live_data/blob/master/examples/...)