const [items, setItems] = useState([]);
I made the above arrangement using useState.
useState
I created a function to add {value:
{value: