mirror of
https://github.com/ziex-dev/ziex.git
synced 2026-07-22 11:39:34 -06:00
18 lines
597 B
Zig
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");
|