Skip to content

Commit

Permalink
Add missing import statement for useBlockProps (#44607)
Browse files Browse the repository at this point in the history
  • Loading branch information
imanish003 authored Sep 30, 2022
1 parent a6c43fb commit bb72b32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/getting-started/create-block/author-experience.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ All of this combined together, here's what the edit function looks like:
```jsx
import { Placeholder, TextControl } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { useBlockProps } from "@wordpress/block-editor";

export default function Edit( { attributes, isSelected, setAttributes } ) {
return (
Expand Down

0 comments on commit bb72b32

Please sign in to comment.