Answer the question
In order to leave comments, you need to log in
How to select multiple objects dynamically?
const Slug =
[
{title: "тест", column:[
{id: 0, subtitle: "О тест", urlColumn:[
{linktitle: 'Тестовое название', link: "yandex.ru"}
]},
{id: 1, subtitle: "тест", urlColumn:[
{linktitle: 'Тестовое название', link: "yandex.ru"}
]},
{id: 2, subtitle: "тест", urlColumn:[
{linktitle: 'Тестовое название', link: "yandex.ru"}
]},
{id: 3, subtitle: "Исполнение", urlColumn:[
{linktitle: 'Тестовое название', link: "yandex.ru"}
]},
]},
]
{Slug.map((subItem) =>
<SubNavItem key={subItem.title} subtitle={Slug[0].column('subtitle')} linktitle={Slug[1].column[3].urlColumn[0].linktitle} link={Slug[1].column[3].urlColumn[0].link}/>
)}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question