Skip to content

Commit

Permalink
Fix missing closing tag for RegistryConsumer example
Browse files Browse the repository at this point in the history
  • Loading branch information
ocean90 committed Jun 25, 2019
1 parent 3ae8fcf commit 1cbeb07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ You can read more about the react context api here:

_Usage_

````js
```js
const {
RegistryProvider,
RegistryConsumer,
Expand All @@ -419,6 +419,7 @@ const App = ( { props } ) => {
</RegistryConsumer>
</RegistryProvider>
}
```

<a name="RegistryProvider" href="#RegistryProvider">#</a> **RegistryProvider**

Expand All @@ -434,13 +435,13 @@ Given the name of a registered store, returns an object of the store's selectors
The selector functions are been pre-bound to pass the current state automatically.
As a consumer, you need only pass arguments of the selector, if applicable.

*Usage*
_Usage_

```js
const { select } = wp.data;

select( 'my-shop' ).getPrice( 'hammer' );
````
```

_Parameters_

Expand Down
1 change: 1 addition & 0 deletions packages/data/src/components/registry-provider/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const { Consumer, Provider } = Context;
* </RegistryConsumer>
* </RegistryProvider>
* }
* ```
*/
export const RegistryConsumer = Consumer;

Expand Down

0 comments on commit 1cbeb07

Please sign in to comment.