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...

Markdown supported · ⌘↵ to post
No responses yet.