From 1cbeb073b382754e4d2425276c85eaf73ff0acc4 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Tue, 25 Jun 2019 19:15:30 +0200 Subject: [PATCH] Fix missing closing tag for RegistryConsumer example --- packages/data/README.md | 7 ++++--- packages/data/src/components/registry-provider/context.js | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/data/README.md b/packages/data/README.md index cee8f5c9733d63..0e117eca77d876 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 a1fe1a9e56183c..157225a7c7888b 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;