Sometimes we have to define classes using curly braces instead of just quotes when we have to merge some classes that are conditionally rendered. For example:
className={`some class here ${some condition based class here}`}
OR
className={cn(
"some class here",
some condition based class here
)}
The first one works randomly. I think if there are lots of classes and the prettier has moved the ending bracket to next line, the extension fails to fold.
Sometimes we have to define classes using curly braces instead of just quotes when we have to merge some classes that are conditionally rendered. For example:
The first one works randomly. I think if there are lots of classes and the prettier has moved the ending bracket to next line, the extension fails to fold.
example: