diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-08 13:52:25 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-08 13:52:25 +0200 |
| commit | ec30b659dfd337f5edf512ea78032fe18251b704 (patch) | |
| tree | 8fe9cfd4b965c7ffbac7f190681b6ac5ac9f8ae7 /src/app/components | |
| parent | 0a2f6f8cc48258fca60df2f193790b2d94a9d0f6 (diff) | |
refactor html module
Diffstat (limited to 'src/app/components')
| -rw-r--r-- | src/app/components/hello/root.zig | 6 |
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(), }; |