Answer the question
In order to leave comments, you need to log in
How to iterate over an array using the map method with a condition?
I iterate over the array and display the component based on it:
tasks.map((task) => (
<Task
key={task.ID}
task={task}
/>
))
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