ziex/test/data/component/react.zig
Nurul Huda (Apon) 33ec71739d
refactor(ast): use direct import of zx
- This is to allow importing zx with any other decl name than zx
2026-02-09 11:14:05 +06:00

18 lines
501 B
Zig

pub fn Page(allocator: zx.Allocator) zx.Component {
const max_count = 10;
var _zx = @import("zx").allocInit(allocator);
return _zx.ele(
.main,
.{
.allocator = allocator,
.children = &.{
_zx.client(.{ .name = "CounterComponent", .path = "test/data/component/react.tsx", .id = "cc92487" }, .{ .max_count = max_count }),
},
},
);
}
const zx = @import("zx");
// const CounterComponent = @jsImport("react.tsx");