#recursive map in template
2 messages · Page 1 of 1 (latest)
You can abstract your logic into a component and use Astro.self https://docs.astro.build/en/reference/api-reference/#astroself
2 messages · Page 1 of 1 (latest)
Hello, is there an easy way to recursive map in a template?
{
x.map(y =>
<img src="{y}"/>
y.map( z =>
<img src="{z}"/>
z.map( h =>
.......
}
You can abstract your logic into a component and use Astro.self https://docs.astro.build/en/reference/api-reference/#astroself