I have a table that I pull values of it from an API. It displays multiple rows of firm, office, account, and sales fields. Now I need to add a way to update field values, for example user would change the value of the firm then, click submit which would update the value in the Database through API.
First problem I am facing here is how can I keep a track of multiple states of things so when they change I update them and submit new values?
I have this but I don't think it'll work?
state = {[
firm: null,
office: null,
salesCode: null,
account: null
]}