In my React app (really basic at the moment) I have an array inside another array and I want to loop over all this content. So far my code is:
{recipes.map((recipe) => (
<Recipe
key={recipe.uid}
title={recipe.data.title?.[0]?.text || null}
description={recipe.data.intro?.[0]?.text || null}
image={recipe.data.featured_image.url || null}
imageAlt={recipe.data.featured_image.alt || null}
aventuraTitle={recipe.data.tipo_aventura[0].tipo_titulo?.[0]?.text || null}
/>
))}
In this code I want aventuraTitle show all the tipo_titulo?.[0]?.text that exist.
As you can imagine this show only the first title.
I don't know what is the best way to loop over this array in React. Could you please advise me? If you need any extra information, please let me know.
