const [items, setItems] = useState([]);
const [input, setInput] = useState("");
const handleAddItem = () => {
if (input.length > 0) {
setItems([...items, input]);
setInput('');
}
};
const [items, setItems] = useState([]);
const [input, setInput] = useState("");
const handleAddItem = () => {
if (input.length > 0) {
setItems([...items, input]);
setInput('');
}
};
For further actions, you may consider blocking this person and/or reporting abuse
Deepanshu Chhikara -
Avinashd -
pooja Singh -
Gianluca -
Top comments (0)