From f8a24081d45d84975c289483e089ccf895b66203 Mon Sep 17 00:00:00 2001 From: Gerardo Marx Date: Sat, 30 May 2026 11:39:47 -0600 Subject: [PATCH] conditional rendering --- src/components/ListGroup.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/ListGroup.tsx b/src/components/ListGroup.tsx index fbf4938..b07a45f 100644 --- a/src/components/ListGroup.tsx +++ b/src/components/ListGroup.tsx @@ -1,9 +1,11 @@ function ListGroup() { - const items = ['New York', 'San Francisco', 'Tokyo', 'London']; - + let items = ['New York', 'San Francisco', 'Tokyo', 'London']; + items = []; + return ( <>

List Name

+ {items.length === 0 &&

No items found

}