I create inputs on click with this function.
createInputs(e) { // e.preventDefault(); const newInput = `input-${this.state.itemArray.length}`;