counter

command
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

README

Liveflux Counter Example

A minimal, runnable Liveflux example.

Run

# from the liveflux repo root
go run ./examples/counter

Then open http://localhost:8080

Screenshot

What it does

  • Renders a server-side Counter using liveflux.SSR
  • Mounts the JS runtime via liveflux.Script()
  • Sends actions to /liveflux endpoint

Notes

  • The component uses c.Root(content) (provided by liveflux.Base) to wrap its markup with the standard Liveflux root and required hidden fields (component, id).

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL