Skip to content

Commit

Permalink
docs(components/higher-order/with-spoken-messages): fix issue in exam…
Browse files Browse the repository at this point in the history
…ple code (#16144)
  • Loading branch information
dsifford authored and gziolo committed Jun 13, 2019
1 parent 384902f commit 70c39bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { withSpokenMessages, Button } from '@wordpress/components';

const MyComponentWithSpokenMessages = withSpokenMessages( ( { speak, debouncedSpeak } ) => (
<div>
<Button isDefault onClick={ speak( 'Spoken message' ) }>Speak</Button>
<Button isDefault onClick={ debouncedSpeak( 'Delayed message' ) }>Debounced Speak</Button>
<Button isDefault onClick={ () => speak( 'Spoken message' ) }>Speak</Button>
<Button isDefault onClick={ () => debouncedSpeak( 'Delayed message' ) }>Debounced Speak</Button>
</div>
) );
```

0 comments on commit 70c39bc

Please sign in to comment.