Skip to content

Instantly share code, notes, and snippets.

@rippinrobr
Created June 14, 2018 16:10
Show Gist options
  • Save rippinrobr/534ee6c4cb782653593757cf66d045c3 to your computer and use it in GitHub Desktop.
Save rippinrobr/534ee6c4cb782653593757cf66d045c3 to your computer and use it in GitHub Desktop.
the main and update functions
update msg model =
if msg.operation == "SELECT_TAG" then
{ model | selectedTag = msg.data }
else
model
main =
Html.beginnerProgram
{ model = initialModel
, view = view
, update = update
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment