Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

search for country name from api with react

data
  .filter(
    (country) =>
      !search || country.name.toLowerCase().includes(search.toLowerCase())
  )
  .map(country => ...)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #search #country #api #react
ADD COMMENT
Topic
Name
4+9 =