Hi i'm trying to display a sequence of buttons of different color
{colors.map((color) => {
const isActive = selectedColors.includes(color.id.toString())
const bgColor = w-10 h-10 bg-[${color.attributes.hex}]
return (
<Button
key={color.id}
className={bgColor}
onClick={() => {
toggleColor(color.id.toString())
}}
/>
)
})}
if i replace color.attributes.hex with a random hex code it works