Why Does Shadcn use cn() Helper Functions?
If you browse through Shadcn's component set, you'll find extensive use of a helper function cn, which uses twMerge(clsx(inputs)).
If you browse through Shadcn's component set, you'll find extensive use of a helper function cn, which uses twMerge(clsx(inputs)).
I've encountered very user-unfriendly Tailwind projects. Some anti-patterns can be easily avoided early on, but become huge issues as the project scales.
If you're familiar with writing native CSS, learning Tailwind will be a breeze for you. Tailwind is the most popular and widely used CSS framework.