public sealed class Counter : StatefulComponent{ private int _n; public override VisualNode Build(ComponentContext c) => new Pressable(new Text($"Count: {_n}"), () => SetState(() => _n++));}
Server action
UI
Llamar al backend desde el cliente, con tipos seguros.
public sealed class Counter : StatefulComponent{ private int _n; public override VisualNode Build(ComponentContext c) => new Pressable(new Text($"Count: {_n}"), () => SetState(() => _n++));}
Server action
UI
Llamar al backend desde el cliente, con tipos seguros.