diff --git a/utils.go b/utils.go index d60cb80..183b0e7 100644 --- a/utils.go +++ b/utils.go @@ -31,7 +31,7 @@ func ApplyStyle(s Style) string { } // Show conditionally renders one of the provided elements based on the condition -func Show(condition bool, ifTrue, ifFalse *Element) *Element { +func Show(condition bool, ifTrue, ifFalse Node) Node { if condition { return ifTrue }