From 7a7275d48cd3a50ae708fdb31e94d4cafb3dd319 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Thu, 4 Nov 2021 20:56:20 -0400 Subject: [PATCH] Update documentation for importing hooks (#4896) Co-authored-by: Jed Watson --- docs/pages/async/index.tsx | 2 +- docs/pages/creatable/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pages/async/index.tsx b/docs/pages/async/index.tsx index 77ff4bc052..25ee5d5083 100644 --- a/docs/pages/async/index.tsx +++ b/docs/pages/async/index.tsx @@ -21,7 +21,7 @@ export default function Async() { Use the Async component to load options from a remote source as the user types. ~~~jsx - import Async, { makeAsyncSelect } from 'react-select/async'; + import Async, { useAsync } from 'react-select/async'; ~~~ ## Loading Asynchronously diff --git a/docs/pages/creatable/index.tsx b/docs/pages/creatable/index.tsx index ce2b1b49a7..87d8b6d763 100644 --- a/docs/pages/creatable/index.tsx +++ b/docs/pages/creatable/index.tsx @@ -25,7 +25,7 @@ export default function Creatable() { # Creatable ~~~jsx - import Creatable, { makeCreatableSelect } from 'react-select/creatable'; + import Creatable, { useCreatable } from 'react-select/creatable'; ~~~ For the prop definition, please see the API docs [here](/props)