Skip to content

Instantly share code, notes, and snippets.

@j-hannes
Last active May 15, 2016 17:03
Show Gist options
  • Save j-hannes/3416c9fa587a6e81efa60212e558980d to your computer and use it in GitHub Desktop.
Save j-hannes/3416c9fa587a6e81efa60212e558980d to your computer and use it in GitHub Desktop.
Post 2 Version A
module Main exposing (..)
import Html exposing (button, div, span, text)
import Html.Events exposing (onClick)
type Action
= Increment
| Decrement
main =
div []
[ button [ onClick Decrement ] [ text "-" ]
, span [] [ text "0" ]
, button [ onClick Increment ] [ text "+" ]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment