Skip to content

Instantly share code, notes, and snippets.

@brian-watkins
Created June 11, 2017 13:49
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 brian-watkins/3e366faa3a83ff6a7320613ee43bd900 to your computer and use it in GitHub Desktop.
Save brian-watkins/3e366faa3a83ff6a7320613ee43bd900 to your computer and use it in GitHub Desktop.
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