3 ms·
gomponents is just a glorified string builder, so it's more or less like writing HTML in Go that gets output from the server. So you put event handlers on your
by markusw 2y ago
gomponents is just a glorified string builder, so it's more or less like writing HTML in Go that gets output from the server. So you put event handlers on your elements like you normally would, write scripts and include JS like you normally would, etc.
That said, there's gomponents-htmx [0] for easy integration with HTMX.
[0]: https://github.com/maragudk/gomponents-htmx https://github.com/maragudk/gomponents-htmx