pub fn Page(ctx: zx.PageCtx(root.AppCtx, UserState)) zx.Component {
    const allocator = ctx.arena;

    return (
        <div @allocator={allocator}>
            <h2>About ZX {ctx.app.port}</h2>
            <h2>About State {ctx.state.count}</h2>
        </div>
    );
}

pub const options = zx.PageOptions{
    .methods = &.{.GET},
};

const zx = @import("zx");
const root = @import("root");
const UserState = @import("../proxy.zig").UserState;