Skip to content

Instantly share code, notes, and snippets.

@vladbatushkov
Last active November 28, 2020 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vladbatushkov/8271e91c360ae9189e282b9f03fa543d to your computer and use it in GitHub Desktop.
Save vladbatushkov/8271e91c360ae9189e282b9f03fa543d to your computer and use it in GitHub Desktop.
eatnoteat element
main : Program Int Model Msg
main =
Browser.element
{ init = init
, view = view
, update = update
, subscriptions = subscriptions
}
init : Int -> ( Model, Cmd Msg )
init width =
...
view : Model -> Html Msg
view model =
...
update : Msg -> Model -> ( Model, Cmd Msg )
update action model =
...
subscriptions : Model -> Sub Msg
subscriptions model =
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment