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
Yiran Jing -
negi-space -
Sai N -
Rivera Daugherty -
Top comments (0)