diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2023-12-22 01:10:59 +0000 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2023-12-22 11:01:21 +0000 |
commit | 76a166736135a522a740b24d776a2e3b9656fdbd (patch) | |
tree | 75d7fa60c69f850dd2e46a386ae5ed3db0eb4438 /examples/counter.gleam | |
parent | fb0e3a9b1835dc30ba196ddb630f02f9d554978a (diff) | |
download | lustre-76a166736135a522a740b24d776a2e3b9656fdbd.tar.gz lustre-76a166736135a522a740b24d776a2e3b9656fdbd.zip |
:heavy_plus_sign: Upgrade to Gleam v0.33.0
Diffstat (limited to 'examples/counter.gleam')
-rw-r--r-- | examples/counter.gleam | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/examples/counter.gleam b/examples/counter.gleam index ab453da..37af39a 100644 --- a/examples/counter.gleam +++ b/examples/counter.gleam @@ -44,13 +44,10 @@ pub fn update(model: Model, msg: Msg) -> Model { // VIEW ------------------------------------------------------------------------ pub fn view(model: Model) -> Element(Msg) { - div( - [], - [ - button([event.on_click(Incr)], [text("+")]), - button([event.on_click(Decr)], [text("-")]), - button([event.on_click(Reset)], [text("Reset")]), - p([], [text(int.to_string(model))]), - ], - ) + div([], [ + button([event.on_click(Incr)], [text("+")]), + button([event.on_click(Decr)], [text("-")]), + button([event.on_click(Reset)], [text("Reset")]), + p([], [text(int.to_string(model))]), + ]) } |