2. On the search page get data using useSeachParams
const searchParams = useSearchParams();
const searchTextValue: any = searchParams.get("q");
3. Add filter logic
const filterSearchProduct = liveProducts?.filter((elm: any) => {
return elm.title?.toLowerCase()?.includes(searchTextValue?.toLowerCase());
});
Then render data where you want to show it!
Top comments (0)
Subscribe
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)