{OfferData.map(data => (
<>
<div className={offer-applied-action ${abc ? 'applied': ''}
} onClick={()=> setAbc(!abc)}>Apply
</>
))}
map function generates two div as per my JSON data and I want to add a click function on it when once clicked all should be deactivated/deselected except the clicked one.