The story behind Tailwind's CN function
Seen this as a tailwind coder?
<button
className={cn("px-4 py-2 rounded", {
"bg-blue-500 text-white": isPrimary,
"bg-gray-200 text-gray-800": !isPrimary,
})}
>
Click me
</button>
Have you ever wondered why everyone is using the cn func...
tigerabrodi.blog2 min read