Check out example codes for "use map with filter in react components from arrays of data". It will help you in understanding the concepts better.
Code Example 1
<div>
{names.filter(name => name.includes('J')).map(filteredName => (
<li>
{filteredName}
</li>
))}
</div>
Learn ReactJs, React Native from akashmittal.com