skip to Main Content

Reactjs – use reselect with two or three parameters?

This is an example from reselect documents const selectItemsByCategory = createSelector( [ state => state.items, (state, category) => category ], (items, category) => items.filter(item => item.category === category) ) usage on react const myitems = useSelector( (state) => selectItemsByCategory(state, 'CatName')…

VIEW QUESTION
Back To Top
Search