How to filter search thoroughly (REACT.JS)

Viewed 12

I created a project where if I search for an anime it displays the anime and other anime that has the the first four letters or word similar to the anime searched for. I want to filter my search in a way that it only shows specifically, only anime searched for and no other anime
I have tried

```{animeList.filter(anime => (anime.title === search) )}```

search is a state passed in as a prop which has I have destructured NB. I used API

0 Answers
Related