React Hook, Hooks, React.
UseStateArray() { const [items, setItems] = useState([]) const addItem=()=>{ //since states doesn;t automatically merge and update the value so we use … spread operator //this means we make a copy of all the items in array using (…) spread operator and append another object setItems([…items,{