Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

use map with filter in react components from arrays of data

<div>
  {names.filter(name => name.includes('J')).map(filteredName => (
    <li>
      {filteredName}
    </li>
  ))}
</div>
Source by upmostly.com #
 
PREVIOUS NEXT
Tagged: #map #filter #react #components #arrays #data
ADD COMMENT
Topic
Name
6+1 =