I\'m updating an input field with an onChange event in React.
const handleUpdateText = (id, name, text) => { const newItems = items.map( item => { i