diff options
Diffstat (limited to 'src/app')
| -rw-r--r-- | src/app/components/hello/root.zig | 6 | ||||
| -rw-r--r-- | src/app/root.zig | 2 |
2 files changed, 2 insertions, 6 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(), }; diff --git a/src/app/root.zig b/src/app/root.zig index eefc374..8ed7f43 100644 --- a/src/app/root.zig +++ b/src/app/root.zig @@ -16,7 +16,7 @@ pub const app: z.App(.{ .components = &.{ @import("components/hello/root.zig").component, }, - .body = .native(.@"app-hello", .{}, .content("")), + .body = .node("app-hello", .{}, &.{}), .theme = @embedFile("theme.css"), }) = .init; |