filter()
and map()
with React to filter and transform your array of data into an array of components.map()
filter()
map()
.filter()
.key
on each component in a collection so React can keep track of each of them even if their position or data changes.useEffect
.