In React, components will automatically re-render if there are state changes. In this case, the input field does not re-render because there is no change in its value.
And because its key is mapped to the index instead of id, the position of the input field does not change with its corresponding list item.