ziex/test/data/component/import.zx
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

13 lines
289 B
Zig

pub fn Page(allocator: z.Allocator) z.Component {
return (
<main @allocator={allocator}>
<Button title="Custom Button" />
</main>
);
}
const z = @import("zx");
const Button = @import("basic.zx").Button;
const ClientComponent = @jsImport("basic.tsx");