Tag: clsx
cn(): The Most Useful Function for Styling
TailwindCSS is a utility-first CSS framework, which often requires us to write many CSS classes in React components' className. By using the cn() function, we can make the CSS class notation clear and handle complex conditional statements.
Source: Blog