Reactjs – Comparing string to array – React
let category = "design" //This place is changing, like art, design, photo let filtered = data.filter((item) => category === item.category_name)` category contains a string. item.category_name is an array. What I want to do is a filtering event. but an item…