Created
July 12, 2017 13:13
-
-
Save neerajsingh0101/60627801877312ea95e328f704e5245a 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 Main exposing (..) | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (..) | |
main = | |
Html.beginnerProgram { model = model, view = view, update = update } | |
model : { name : String, age : Int } | |
model = | |
{ name = "Sam", age = 23 } | |
type Msg | |
= Noop | |
update : Msg -> { name : String, age : Int } -> { name : String, age : Int } | |
update msg model = | |
model | |
view : { name : String, age : Int } -> Html Msg | |
view model = | |
div [] [ text (toString model) ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment