I have an array of objects. I need to create an input, and the input\'s value is the value of the selected item in the array on the first render. Changing the input\'s value