const std = @import("std"); const z = @import("z"); pub const component: z.Component = .{ .name = "hello", .html = .native( .div, .{ .onclick = "@clicked" }, .content("click me"), ), .css = @embedFile("index.css"), .link = @This(), }; pub fn clicked() void { z.log.js.debug("hi"); }