i created a search function using react js to filter a table of data fetched from graphql endpoint code :
const SearchRes = ()