aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/hello
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-08 13:52:25 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-08 13:52:25 +0200
commitec30b659dfd337f5edf512ea78032fe18251b704 (patch)
tree8fe9cfd4b965c7ffbac7f190681b6ac5ac9f8ae7 /src/app/components/hello
parent0a2f6f8cc48258fca60df2f193790b2d94a9d0f6 (diff)
refactor html module
Diffstat (limited to 'src/app/components/hello')
-rw-r--r--src/app/components/hello/root.zig6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/app/components/hello/root.zig b/src/app/components/hello/root.zig
index 55bf2e6..c4a7732 100644
--- a/src/app/components/hello/root.zig
+++ b/src/app/components/hello/root.zig
@@ -5,11 +5,7 @@ const Self = @This();
pub const component: z.Component = .{
.name = "hello",
- .html = .native(
- .div,
- .{ .onclick = "@clicked" },
- .content("click me"),
- ),
+ .html = .node("div", .{ .onclick = "@clicked" }, &.{.text("click me")}),
.css = @embedFile("index.css"),
.link = @This(),
};