diff --git a/packages/@headlessui-react/README.md b/packages/@headlessui-react/README.md index 246baf2942..b4b4744f80 100644 --- a/packages/@headlessui-react/README.md +++ b/packages/@headlessui-react/README.md @@ -75,20 +75,22 @@ function MyComponent() { const [isOpen, setIsOpen] = useState(false) return ( - - - I will fade in and out - + <> + + + I will fade in and out + + ) } ``` @@ -105,15 +107,17 @@ function MyComponent() { const [isOpen, setIsOpen] = useState(false) return ( - - - I will fade in and out - + <> + + + I will fade in and out + + ) } ``` @@ -128,18 +132,20 @@ function MyComponent() { const [isOpen, setIsOpen] = useState(false) return ( - - - I will fade in and out - + <> + + + I will fade in and out + + ) } ``` @@ -154,15 +160,17 @@ function MyComponent() { const [isOpen, setIsOpen] = useState(false) return ( - - - {ref =>
{/* Your content goes here*/}
} -
+ <> + + + {(ref) =>
{/* Your content goes here*/}
} +
+ ) } ``` @@ -192,20 +200,22 @@ function MyComponent() { const [isOpen, setIsOpen] = useState(false) return ( - - - I will fade in and out - + <> + + + I will fade in and out + + ) } ```