N
N
nickname133842019-07-11 21:50:42
JavaScript
nickname13384, 2019-07-11 21:50:42

How to do checkbox filtering like this React js?

5d278146eb395781217903.png
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

1 answer(s)
0
0xD34F, 2019-07-11
@nickname13384

https://jsfiddle.net/gxab98nq/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question