Answer the question
In order to leave comments, you need to log in
How to make links in a loop?
You need to make references in the React component's loop. Prompt the correct syntax, please.
<CardImg top width="100%" src={`/${item.picture}`} alt="{item.imgalt}" />
Answer the question
In order to leave comments, you need to log in
{items.map(item => (
<CardImg key={item.picture} top width="100%" src={item.picture} alt={item.imgalt} />
))}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question