blob: 6f68550aa0a8f584e4e2ed4daa19bb59c5804465 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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");
}
|