Let's say I want to add items to a list (similar to the "tags" functionality)
const [newText, setNewText] = useState('');
function createItem(label :string){
... create item and:
setNewText(''); // DOES NOTHING
}
return(
<AutoComplete
value={newText}
onChange={x => createItem(x)}
...
)