Created
June 11, 2017 13:49
-
-
Save brian-watkins/3e366faa3a83ff6a7320613ee43bd900 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module App exposing | |
( Model | |
, defaultModel | |
, view | |
, update | |
) | |
import Html exposing (Html) | |
import Html.Attributes as Attr | |
type Msg | |
= Msg | |
type alias Model = | |
{ items : List String | |
} | |
defaultModel : Model | |
defaultModel = | |
{ items = [] | |
} | |
view : Model -> Html Msg | |
view model = | |
Html.div [] | |
[ Html.ul [ Attr.id "items" ] [] | |
] | |
update : Msg -> Model -> ( Model, Cmd Msg ) | |
update msg model = | |
(model, Cmd.none) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment