Elm is designed specifically for building applications, and it is built around a scalable and sensible application architecture. Learn the very basics of this architecture through updating application state by reacting to DOM events.
it feels like back in the day when there was all these frameworks for building web applications that abstracted from the dom and generated html (I don't mean that as a bad thing).
Just heads up, I had to use Html.App rather than Html in order to get beginnerProgram
import Html.App exposing (beginnerProgram)
Hi, Daniel, Thanks for the heads up! The video should have been updated to reflect that change as of yesterday morning. Are you seeing something different now?
Hi, Daniel, Thanks for the heads up! The video should have been updated to reflect that change as of yesterday morning. Are you seeing something different now?
At about the 3:15 mark, you type:
import Html exposing (beginnerProgram)
The way to to do import Html exposing (beginnerProgram)
now is
import Browser exposing (sandbox)
main =
Browser.sandbox
{ init = model
, view = view
, update = update
}