Skip to content

Commit

Permalink
fix: change import for InnerBlocks (#7484)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fellner authored and ajitbohra committed Jun 25, 2018
1 parent 70f7f8d commit e7c7f51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/components/inner-blocks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ In a block's `edit` implementation, simply render `InnerBlocks`, optionally with
Then, in the `save` implementation, render `InnerBlocks.Content`. This will be replaced automatically with the content of the nested blocks.

```jsx
import { registerBlockType, InnerBlocks } from '@wordpress/blocks';
import { registerBlockType } from '@wordpress/blocks';
import { InnerBlocks } from '@wordpress/editor';

registerBlockType( 'my-plugin/my-block', {
// ...
Expand Down

0 comments on commit e7c7f51

Please sign in to comment.