Flexible react auto complete component
npm install react-autocomplete-npmsh
npm install react-autocomplete-npm
`
Usage
`sh
import { useState, React } from 'react';
import { Multiselect } from 'react-autocomplete-npm';
const options = [
{ vale: 1, label: "Angular" },
{ value: 2, label: "React" },
{ value: 3, label: "View" },
{ value: 4, label: "LoveJS" }
];
function App() {
const [selectedItem, handleChange] = useState(null);
return (
placeholder={'Search Items'}
data={options}
value={selectedItem}
handleOnChange={handleChange}
/>
);
}
export default App;
``