diff --git a/packages/data/README.md b/packages/data/README.md index cee8f5c9733d6..0e117eca77d87 100644 --- a/packages/data/README.md +++ b/packages/data/README.md @@ -398,7 +398,7 @@ You can read more about the react context api here: _Usage_ -````js +```js const { RegistryProvider, RegistryConsumer, @@ -419,6 +419,7 @@ const App = ( { props } ) => { } +``` # **RegistryProvider** @@ -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_ diff --git a/packages/data/src/components/registry-provider/context.js b/packages/data/src/components/registry-provider/context.js index a1fe1a9e56183..157225a7c7888 100644 --- a/packages/data/src/components/registry-provider/context.js +++ b/packages/data/src/components/registry-provider/context.js @@ -41,6 +41,7 @@ const { Consumer, Provider } = Context; * * * } + * ``` */ export const RegistryConsumer = Consumer;