When rendering a list of data, I need to return it with 2 different colors, for example: the first item background color should be white, and the second items should be gray. This is what I tried
`
<div className={`cursor-pointer w-full my-1 ${event.id % 2 === 0 ? 'bg-white' : 'bg-gray50'}` } >
`
It only works if the item id is odd, otherwise it does not work. I would appreciate any suggestions you may have