From d8a64386b99269eda4b3e7f60d4ca5c00ef349c1 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Wed, 17 Jun 2020 17:22:24 +0200 Subject: [PATCH] Use correct package for importing useState in BoxControl examples --- packages/components/src/box-control/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/components/src/box-control/README.md b/packages/components/src/box-control/README.md index 47d398243297fd..163dc8a5723d6a 100644 --- a/packages/components/src/box-control/README.md +++ b/packages/components/src/box-control/README.md @@ -6,7 +6,7 @@ BoxControl components let users set values for Top, Right, Bottom, and Left. Thi ```jsx import { __experimentalBoxControl as BoxControl } from '@wordpress/components'; -import { useState } from '@wordpress/compose'; +import { useState } from '@wordpress/element'; const Example = () => { const [ values, setValues ] = useState( { @@ -31,7 +31,7 @@ BoxControl provides a companion component that visually renders value changes. P ```jsx import { __experimentalBoxControl as BoxControl } from '@wordpress/components'; -import { useState } from '@wordpress/compose'; +import { useState } from '@wordpress/element'; import MyComponent from './my-component'; @@ -63,7 +63,7 @@ Alternatively, the `` can be nested as a sibling to the component yo ```jsx import { __experimentalBoxControl as BoxControl } from '@wordpress/components'; -import { useState } from '@wordpress/compose'; +import { useState } from '@wordpress/element'; import MyComponent from './my-component';