I am trying to map an array, I am fetching an api, it has array of objects and then those objects also contains array. api sends different number of instances as response, what i am trying to do is , I am displaying that data , one instance contains [name, education, dob, address, relationships, jobhistory etc] but at the moment it only shows name,phone,address of data, what i want to do is i want to show more data in a collapsable div, which will expand on button click, and it will show the remaining data, and onbutton click it hides the data,
my question is how do create separate button state for each map value?