Skip to content

Commit

Permalink
Add missing useState import in confirm dialog docs. (#42071)
Browse files Browse the repository at this point in the history
  • Loading branch information
chintu51 authored Dec 8, 2022
1 parent 0afb868 commit 87344e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/src/confirm-dialog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 87344e7

Please sign in to comment.