I have a nested array, and want to convert it into a table in React.
For example, my data is represented as:
data = [[a,b,c], [d,e,f], [g, h, i]]
and I would like to represent it as a table in React that looks something like:
a d g
b e h
c f i
with each entry in the data list as a column, and the first entry in each nested list (a, d, and g in my case) as headers. I have been trying to use nested map functions, but have been unsuccessful