[Vuejs]-How to convert Vue classess to React classess?

0👍

You can try out this:

className={ "relative " +
 (size === 'sm' && " h-10 w-10 ") +
 (size === 'md' && " h-12 w-12 ") +
 (size === 'lg' && " h-14 w-14 ")
}

Leave a comment