diff --git a/packages/components/src/confirm-dialog/README.md b/packages/components/src/confirm-dialog/README.md index 5ed36534898490..9274a8fa2eaea1 100644 --- a/packages/components/src/confirm-dialog/README.md +++ b/packages/components/src/confirm-dialog/README.md @@ -44,6 +44,7 @@ Let the parent component control when the dialog is open/closed. It's activated ```jsx import { __experimentalConfirmDialog as ConfirmDialog } from '@wordpress/components'; +import { useState } from '@wordpress/element'; function Example() { const [ isOpen, setIsOpen ] = useState( true );