mirror of
https://github.com/ziex-dev/ziex.git
synced 2026-07-20 02:29:36 -06:00
fix: missing allocator attr
This commit is contained in:
parent
ca15077bb7
commit
0081f17c94
@ -9,7 +9,7 @@ pub fn Page(ctx: zx.PageContext) zx.Component {
|
||||
pub fn EventForm(ctx: *zx.ComponentContext) zx.Component {
|
||||
const count = ctx.state(i32, 1);
|
||||
return (
|
||||
<button onclick={ctx.bind(onclick)}>
|
||||
<button @allocator={ctx.allocator} onclick={ctx.bind(onclick)}>
|
||||
Click Me {count}
|
||||
</button>
|
||||
);
|
||||
|
||||
@ -9,7 +9,7 @@ pub fn Page(ctx: zx.PageContext) zx.Component {
|
||||
pub fn EventForm(ctx: *zx.ComponentContext) zx.Component {
|
||||
const count = ctx.state(i32, 1);
|
||||
return (
|
||||
<button onclick={ctx.bind(onclick)}>
|
||||
<button @allocator={ctx.allocator} onclick={ctx.bind(onclick)}>
|
||||
Click Me {count}
|
||||
</button>
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user