diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2023-07-20 21:39:39 +0100 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2023-07-20 21:39:39 +0100 |
commit | c6e25797328a167c986f9e8503b028157a0105aa (patch) | |
tree | 575609b8b2c86cb4378ec17ad9fee0d11f4dae64 /test/examples/components.gleam | |
parent | b6fb7195307e9c5e3a085080e2ee63acf19e3123 (diff) | |
download | lustre-c6e25797328a167c986f9e8503b028157a0105aa.tar.gz lustre-c6e25797328a167c986f9e8503b028157a0105aa.zip |
:recycle:
Rename terse 'h' and 't' to 'element' and 'text'.
Diffstat (limited to 'test/examples/components.gleam')
-rw-r--r-- | test/examples/components.gleam | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/examples/components.gleam b/test/examples/components.gleam index 2479eb1..5ba3813 100644 --- a/test/examples/components.gleam +++ b/test/examples/components.gleam @@ -9,7 +9,7 @@ import gleam/result import lustre import lustre/attribute import lustre/effect -import lustre/element.{h, t} +import lustre/element.{element, text} import lustre/event import lustre/html.{button, div, li, ol, p} @@ -58,8 +58,8 @@ fn render(history) { div( [], [ - ol([], list.map(history, fn(msg) { li([], [t(msg)]) })), - h( + ol([], list.map(history, fn(msg) { li([], [text(msg)]) })), + element( "custom-counter", [on_custom_click, attribute.property("count", list.length(history))], [], @@ -90,8 +90,8 @@ fn counter_render(count) { div( [], [ - button([event.on_click(Clicked)], [t("Click me!")]), - p([], [t("Count: "), t(int.to_string(count))]), + button([event.on_click(Clicked)], [text("Click me!")]), + p([], [text("Count: "), text(int.to_string(count))]), ], ) } |