Click to Update
Click a button → server returns a value → it appears on screen without reloading.
Live
Static preview
This is a read-only export. Run the app locally for full interactivity — live search, demos, and server-driven islands need the Go server.
Click a button → server returns a value → it appears on screen without reloading.
You have a counter, a vote button, or any UI where a click should update a number or string on screen — without a full page reload. The server owns the state; the browser just displays the latest value.
Put data-fui-rpc on a button and data-fui-rpc-signal on the same element. Add a data-fui-signal span wherever you want the response to appear. The runtime POSTs, parses JSON or text, and pushes the result into every matching signal node.
interactive.OnClick(
render.Tag("button", nil, render.Text("Like")),
interactive.Post("/api/like").
OnSuccess(interactive.SetSignal("like-count")),
)Click the button — the number updates from the server. No page reload.