ziex/test/data/component/csr_react_multiple.zx
2025-12-23 16:14:04 +06:00

18 lines
597 B
Zig

pub fn Page(allocator: zx.Allocator) zx.Component {
const max_count = 10;
return (
<main @allocator={allocator}>
<CounterComponent @rendering={.react} max_count={max_count} />
<AnotherComponent @rendering={.react} />
<AnotherComponent @rendering={.react} />
<AnotherSameComponent @rendering={.react} />
</main>
);
}
const zx = @import("zx");
const CounterComponent = @jsImport("react.tsx");
const AnotherComponent = @jsImport("csr_react_multiple.tsx");
const AnotherSameComponent = @jsImport("csr_react_multiple.tsx");