Below is the code, where on preload all items get bind inside the text box, and with the help of the same text box, I want to update the value of state in react. items state get's updated but it throws an error as soon as the handlechange method execution gets over. items.map is not a function. How can I use handle change function on the text box to update the array state?
Please check the attachment in which I have attached the text file.

Shivangi RajdeRank #609 · 3.9K reputationPosted Jun 29, 2020, 2:47 AM EDT
Hope it helps