ziex/test/data/component/csr_react_multiple.zx

18 lines
593 B
Zig

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