diff --git a/README.md b/README.md index aca5707..8cb9422 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,8 @@ This master branch now reflects the development of the next major release of thi [See the demo site!](https://react-collapsed.netlify.com/) +[CodeSandbox demo](https://codesandbox.io/s/magical-browser-vibv2?file=/src/App.tsx) + ## Installation ```bash @@ -60,14 +62,14 @@ import React, { useState } from 'react'; import useCollapse from 'react-collapsed'; function Demo() { - const [isExpanded, setOpen] = useState(false); + const [isExpanded, setExpanded] = useState(false); const { getCollapseProps, getToggleProps } = useCollapse({ isExpanded }); return (