Components
Demonstrates the two kinds of components: pure templ functions for stateless reusable pieces, and struct components that carry state, handle input, and compose together with the {children...} slot.
Screenshot

Run
go run .
Guide
For a detailed walkthrough, see the Components guide.