mirror of
https://github.com/ziex-dev/ziex.git
synced 2026-07-22 11:39:34 -06:00
14 lines
335 B
Zig
14 lines
335 B
Zig
pub fn Page(allocator: zx.Allocator) zx.Component {
|
|
return (
|
|
<main @allocator={allocator}>
|
|
<CounterComponent @rendering={.csz} />
|
|
</main>
|
|
);
|
|
}
|
|
|
|
pub fn CounterComponent(allocator: zx.Allocator) zx.Component {
|
|
return (<button @allocator={allocator}>Counter</button>);
|
|
}
|
|
|
|
const zx = @import("zx");
|