Rendering nested data #280
-
Is there a way to render nested data . Coinsider an example
the data coming from server might look something like this
Usage
There are two solutions which I could think of, which does seem to be the ideal way fo doing it.
Note: I dont want them to render them in a nested way in the UI. I want them to render just like it is coming from flat array, just that I will be getting response in nested data from server |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @hussamkhatib , |
Beta Was this translation helpful? Give feedback.
Hello @hussamkhatib ,
I would suggest to flatten the data you feed to the component.
In your state you would have a flattened version of your data, and only transform it when you first load the data, and when you send it back to the server.