e.target.value on an input field ReactJs, how does it work?

Viewed 60405
2 Answers

When you need to handle multiple controlled input elements, you can add a name attribute to each element and let the handler function choose what to do based on the value of event.target.name. By React DOC

Related