Skip to content
Advertisement

React dynamic form input

I have a React form with dynamic input fields that a user can add and remove input fields. When i submit the form, i log the values from each input in an array. The problem is that i can’t type continuously in a input. When i type in input, i can type only one character and it focus out. How can i fix it?

CodeSandbox

App.js

JavaScript

Advertisement

Answer

Replace your code with this

JavaScript
Advertisement