Skip to content

Commit

Permalink
Docs: Add additional info around dependencies to clarify
Browse files Browse the repository at this point in the history
Issue #11069 highlighted that the required dependencies
should be called out more in the documentation. This PR
adds a line adding additional information on including.
  • Loading branch information
mkaz committed Nov 27, 2018
1 parent c33e917 commit 10a22db
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ Note the two script dependencies:
- __`wp-blocks`__ includes block type registration and related functions
- __`wp-element`__ includes the [WordPress Element abstraction](https://github.com/WordPress/gutenberg/tree/master/packages/element) for describing the structure of your blocks

If you were to use a component from the `wp-editor` package, for example the RichText component, you would also need to add `wp-editor` to the dependency list.

## Registering the Block

With the script enqueued, let's look at the implementation of the block itself:
Expand Down

0 comments on commit 10a22db

Please sign in to comment.