Re:The Elm Architecture
by hawkice on Sunday August 26, 2018 @12:44PM
(#17846648)
Turning Html Msg types into actual Dom nodes means hooking up the event handlers so that they call update with the Msg the event handler is given. Browser.sandbox is building the Dom nodes and has the update function.
[ Parent
| on HN ]
Yeah, I got that far. How does it know what it should turn into an Update handler though?
Browser.sandbox, Browser.application etc. are your app's runtimes. (Or they are the doors to the runtime)
Subscriptions or DOM elements can generate Msgs and every Msg causes an update cycle.