in stories/Transition.js [12:29]
function ToggleFixture({ defaultIn, description, children }) {
const [show, setShow] = useState(defaultIn);
return (
<StoryFixture description={description}>
<div style={{ marginBottom: 10 }}>
<button
onClick={() => {
setShow(!show);
}}
>
Toggle
</button>
</div>
{React.cloneElement(children, { in: show })}
</StoryFixture>
);
}