Tag: filtering
-
Create a filtering function in react
0 I want to create a filtering function that trigger when receiving a input value event in react useState but i do not see is doing anything when I start typing in. This is my Search component export function Search({categories, onSearch}){ const [searchText, setSearchText] = useState(”); const filterCategories = () => { const filteredCategories =…