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" >