add missing imports

Closes: #255

Co-authored-by: Pier-Luc Gendreau <Zertz@users.noreply.github.com>
This commit is contained in:
Robin Malfait
2021-02-26 11:22:52 +01:00
parent 958e3ea8c6
commit b949b4bbfa
+6
View File
@@ -1591,6 +1591,9 @@ This component can be used to render content inside a Dialog/Modal. This contain
### Basic example
```jsx
import { useState } from 'react'
import { Dialog } from '@headlessui/react'
function Example() {
let [isOpen, setIsOpen] = useState(true)
@@ -1618,6 +1621,9 @@ function Example() {
#### Dialog
```jsx
import { useState } from 'react'
import { Dialog } from '@headlessui/react'
function Example() {
let [isOpen, setIsOpen] = useState(true)