Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

map of filtered data react

function App(){
  const array = [ 23, 45, 67, 89, 12 ]

  return (
    <ul>
      { 
        array
        .filter(number => number > 60)
        .map(number => <li>{number}</li>) 
      }
    </ul>
  )
}
Source by sebhastian.com #
 
PREVIOUS NEXT
Tagged: #map #filtered #data #react
ADD COMMENT
Topic
Name
6+8 =