Tell me how to sort 32 elements in such a way that 16 are active and the other 16 are inactive?
export const allowedNamesAll = [ "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", "name1", ]; and further through the map
allowedNamesAll.map(item => <div className="active">{item}</div>)
allowedNamesAll? - Stepan Kasyanenko