Skip to content

Instantly share code, notes, and snippets.

@BlackDante
Created July 3, 2016 09:44
Show Gist options
  • Save BlackDante/8743a5945672d726950c810e08439571 to your computer and use it in GitHub Desktop.
Save BlackDante/8743a5945672d726950c810e08439571 to your computer and use it in GitHub Desktop.
update : Msg -> Model -> Model
update msg model =
case msg of
Change newContent ->
{ model | content = newContent }
Click newContent ->
{ model | counter + 1 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment