aboutsummaryrefslogtreecommitdiff
path: root/test/examples/counter.gleam
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2023-07-20 21:39:39 +0100
committerHayleigh Thompson <me@hayleigh.dev>2023-07-20 21:39:39 +0100
commitc6e25797328a167c986f9e8503b028157a0105aa (patch)
tree575609b8b2c86cb4378ec17ad9fee0d11f4dae64 /test/examples/counter.gleam
parentb6fb7195307e9c5e3a085080e2ee63acf19e3123 (diff)
downloadlustre-c6e25797328a167c986f9e8503b028157a0105aa.tar.gz
lustre-c6e25797328a167c986f9e8503b028157a0105aa.zip
:recycle:
Rename terse 'h' and 't' to 'element' and 'text'.
Diffstat (limited to 'test/examples/counter.gleam')
-rw-r--r--test/examples/counter.gleam10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/examples/counter.gleam b/test/examples/counter.gleam
index 3858fc6..a00e756 100644
--- a/test/examples/counter.gleam
+++ b/test/examples/counter.gleam
@@ -2,7 +2,7 @@
import gleam/int
import lustre
-import lustre/element.{Element, t}
+import lustre/element.{Element, text}
import lustre/html.{button, div, p}
import lustre/event
@@ -47,10 +47,10 @@ pub fn render(model: Model) -> Element(Msg) {
div(
[],
[
- button([event.on_click(Incr)], [t("+")]),
- button([event.on_click(Decr)], [t("-")]),
- button([event.on_click(Reset)], [t("Reset")]),
- p([], [t(int.to_string(model))]),
+ 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))]),
],
)
}