Answer the question
In order to leave comments, you need to log in
How to do checkbox filtering like this React js?
How to do this kind of array filtering in React? the project is not commercial, brand names are taken as an example.
The data is taken from json, and all brand names are not in order but randomly, and it should be filtered the same way,
for example json looks like this
Acer,
Asus,
Acer,
Asus
if two brands Acer and Asus are selected, they should be in the same order and output
with .filter I can't do it
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question