From 3c3f06d13a530f19e28627ef603b6d46cc0fc101 Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Tue, 3 Dec 2024 12:53:00 -0800 Subject: [PATCH] docs: "Controlled usage" demo of wasn't working --- src/Collapsible/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Collapsible/README.md b/src/Collapsible/README.md index 46ada68a1f..27a4ecff11 100644 --- a/src/Collapsible/README.md +++ b/src/Collapsible/README.md @@ -185,13 +185,13 @@ See the developer console for logging. ### Controlled usage ```jsx live -function() { +() => { const [collapseIsOpen, setCollapseOpen] = React.useState(true); return ( setCollapseOpen(!isOpen)} + onToggle={isOpen => setCollapseOpen(isOpen)} className="collapsible-card" >