Search Query In react

As the title suggests.
I have a react front end.
Which have different pages relative to the different collections in strapi.
I want to add a search bar that will simply search the name only in the strapi collection to this particular page.
let say there is a react page that displays all restaurants in the restaurant collection, I want to make a search functionality so which displays all restaurants depending on the search query.
Any assistance would be helpfull.