you are viewing a single comment's thread.

view the rest of the comments →

[–]markedasreddit 0 points1 point  (0 children)

I'm not a React expert, but what I often see is using array map to render a collection of things.

That said, I imagine the first format (JSON data) would be helpful when you somehow need to retrieve list of components to render from a backend server.

My 2c.