about summary refs log tree commit diff stats
path: root/gomponents.go
diff options
context:
space:
mode:
Diffstat (limited to 'gomponents.go')
-rw-r--r--gomponents.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/gomponents.go b/gomponents.go
index c0aa510..ee156b9 100644
--- a/gomponents.go
+++ b/gomponents.go
@@ -84,6 +84,9 @@ func El(name string, children ...Node) NodeFunc {
 }
 
 func renderChild(c Node, inside, outside *strings.Builder) {
+	if c == nil {
+		return
+	}
 	if g, ok := c.(group); ok {
 		for _, groupC := range g.children {
 			renderChild(groupC, inside, outside)