Wyszukaj nazwę kraju z API z React

data
  .filter(
    (country) =>
      !search || country.name.toLowerCase().includes(search.toLowerCase())
  )
  .map(country => ...)
Omatsola Eyeoyibo