From cf89f923b483d1cbd83da58146c5e5964ec0cd5e Mon Sep 17 00:00:00 2001 From: Robert O'Rourke Date: Mon, 30 Oct 2023 12:25:53 +0000 Subject: [PATCH] Update InnerBlockSlider.Controlled docs --- src/components/InnerBlockSlider/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/InnerBlockSlider/README.md b/src/components/InnerBlockSlider/README.md index 623f1fc..ca01a11 100644 --- a/src/components/InnerBlockSlider/README.md +++ b/src/components/InnerBlockSlider/README.md @@ -109,14 +109,14 @@ The above example code creates a slider using the core image block as each slide ### Managing the state externally. -If you need to sync the slider component state it with some other external functionality, you may need to manage state in your code. In order to to this, you need to import the InnerBlockSliderStateless rather than the standard container component exposed by the library. +If you need to sync the slider component state it with some other external functionality, you may need to manage state in your code. In order to to this, you need to use the `InnerBlockSlider.Controlled` component rather than the standard container component exposed by the library. ```js -import InnerBlockSliderStateless from '@humanmade/block-editor-components'; +import InnerBlockSlider from '@humanmade/block-editor-components'; const [ currentItemIndex, setCurrentItemIndex ] = useState( 0 ); -