Answer the question
In order to leave comments, you need to log in
How to render an array of articles into different components?
I have two components - 'CardBig' and 'CardSmall', also have an array of articles that I would like to display through these components.
If there is one component, then I would do this:
{props.articles.map((article) => (
<CardNewsSmall media={article.media} category={article.category.name} title={article.title} date={article.date} />
))}
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