TanStackT
TanStack2y ago
2 replies
sacred-rose

How to render dynamic columns based upon the data

I have data like this
[
  {
    "name": "jhon doe",
    "age": 23
  },
  {
    "name": "Riana",
    "hobby": "football"
  }
]

And I want the result as follows

["name", "age", "hobby"]
["jhon doe", 23, ""]
["Riana", , "football"]
Was this page helpful?