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
Chamar o backend a partir do cliente, com 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
Chamar o backend a partir do cliente, com tipos seguros.