You Must Use twMerge + clsx as a Tailwind developer
Sep 13, 2023 · 5 min read · What problem do twMerge and clsx solve? As a tailwind user, you may want to add classes conditionally, or you may want to merge some classes without running into conflicts, Let's see the following example: import { ButtonHTMLAttributes } from "react"...
Join discussion