import * as React from "react"; import Select, * as ReactSelect from "react-select"; import VirtualizedSelect from "react-virtualized-select"; /*Example TValue.*/ interface Example { name: string; } /*Example generic class.*/ class ExampleSelectAsync extends VirtualizedSelect { } class ExampleSelectCreatable extends VirtualizedSelect { }
} selectComponent={Select} options={[]} />
} selectComponent={Select} loadOptions={(input: string) => Promise.resolve([{name: 'Hi'}])} /> arg.label.length > 1} />
;