Pesquise o nome do país da API com React

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