You can do it by assigning a name for your input and by using square brackets inside your onChange method:


Now add names for all of our inputs:


Happy coding!
Quick snippets of useful web dev content for web devs with a short attention span
You can do it by assigning a name for your input and by using square brackets inside your onChange method:


Now add names for all of our inputs:


Happy coding!