Javascript – Problem in editing the element in an array
I'm working on react-phonebook app. I'm unable to understand the correct logic to edit the contact details. On clicking the edit button, I need to show the form and put name and number of that particular contact in the input…