2
const [value, setValue] = React.useState('');
3
const [options, setOptions] = React.useState([]);
4
const mockVal = (str, repeat = 1) => ({
5
value: str.repeat(repeat),
7
const onSearch = (searchText) => {
9
!searchText ? [] : [mockVal(searchText), mockVal(searchText, 2), mockVal(searchText, 3)]
12
const onSelect = (data) => {
13
console.log('onSelect', data);
15
const onChange = (data) => {
22
style={{ width: 200 }}