Closed vedantroy closed 2 years ago
I know tailwind css detects whether a class is used based on className. Since components defined using this format are not using className, will the resulting css file still include the correct class names?
className
Yes. Tailwind's purge mechanism reads the whole file not just what is defined in <div className='some-class'> for example
<div className='some-class'>
Oh that's quite nice, are there docs on how this works?
I know tailwind css detects whether a class is used based on
className
. Since components defined using this format are not usingclassName
, will the resulting css file still include the correct class names?