I want to build a complex form in react. It is a matrix of input and I need to do operations when the value of an input change. I would like to call the same function for the "onchange" of all the inputs, but I need to know which input has called the function. What is the best way to do that ?
Is it a good idea to store all my input values in a javascript array that I store in the state of my component. I could manipulate this array in my function when the value on an input change. I'm not sure it's a good practice.
Any suggestions ? I'm new to React and all the examples I find are with simple forms. Thanks !