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