Skip to content

Commit

Permalink
Use globals instead of imports in tutorials (#13995)
Browse files Browse the repository at this point in the history
* Use globals instead of imports

* Update docs/designers-developers/developers/tutorials/metabox/meta-block-3-add.md

Co-Authored-By: nosolosw <[email protected]>

* Update docs/designers-developers/developers/tutorials/metabox/meta-block-3-add.md

Co-Authored-By: nosolosw <[email protected]>
  • Loading branch information
nosolosw authored and gziolo committed Feb 21, 2019
1 parent 72ff590 commit 011a8b3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ Add this code to your JavaScript file (this tutorial will call the file `myguten
```
{% ESNext %}
```jsx
import { registerBlockType } from '@wordpress/blocks';
import { TextControl } from '@wordpress/components';

const { registerBlockType } = wp.blocks;
const { TextControl } = wp.components;

registerBlockType( 'myguten/meta-block', {
title: 'Meta Block',
Expand Down

0 comments on commit 011a8b3

Please sign in to comment.