J
J
japan1232018-03-14 12:04:09
React
japan123, 2018-03-14 12:04:09

How to combine the work of two filters?

How to display those studios that have a selected parameter, for example, a picture and that fall under the filtering conditions by the price of the Slider filter?
https://codesandbox.io/s/k52oz6p9q3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-03-14
@japan123

When receiving data, remember the list of unique params values, build a drop-down list based on them, when choosing an element of the list, remember what is selected in the selectedParams array, when compiling filteredStudios, check that all params of the studio are in selectedParams, something like this .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question