const [items , setItems] = useState([])
const emptyItem = {name: “” , status: “”}
fetch function => setItems([{},{},…])
const KeyDown =(e) => {
if(e.key === “Insert”) { setITems(prev => […prev, emptyItem]) }
}
when i change new row value emptyItem value changed too. Why ?