Return Node from all helpers instead of NodeFunc (#62) This makes it clearer that the helpers return a `Node` of any kind, and that the type is not important. This also streamlines the API, as attribute helpers already return just `Node`.
1 file changed, 1 insertion(+), 1 deletion(-)
changed files
M components/elements.go → components/elements.go
@@ -5,6 +5,6 @@ g "github.com/maragudk/gomponents" . "github.com/maragudk/gomponents/html" ) -func InputHidden(name, value string, children ...g.Node) g.NodeFunc { +func InputHidden(name, value string, children ...g.Node) g.Node { return Input(Type("hidden"), Name(name), Value(value), g.Group(children)) }