Docs: Fix loadAsyncOptions usage (#25371)

Fixed `loadAsyncOptions` in the `AsyncSelect` component usage so that works
This commit is contained in:
James Wang 2020-06-05 15:40:43 +08:00 committed by GitHub
parent fd93764784
commit 4cf146a29d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ Where the async function could look like this:
```tsx ```tsx
const loadAsyncOptions = () => { const loadAsyncOptions = () => {
return new Promise()<Array<SelectableValue<string>>>(resolve => { return new Promise<Array<SelectableValue<string>>>(resolve => {
setTimeout(() => { setTimeout(() => {
resolve(options); resolve(options);
}, 2000); }, 2000);