Closed frankcollins3 closed 1 year ago
this usage calls for: rotate && scale, both values for the transform property.
first proposed approach: 0: switch to a class
1: const doubleClass = ["class1", "class2"].join(" ")
I"m wondering if there is such a way to join 2 classes and use them in same way as: className={doubleClass} {trasnform: {doubleStyling}}
const transformers = ["rotate(90deg)", "scale(0.25)"].join(" ") works exactly the same. pretty cool. thought it'd fail.
[7:32pm]
this usage calls for: rotate && scale, both values for the transform property.
first proposed approach: 0: switch to a class
1: const doubleClass = ["class1", "class2"].join(" ")
I"m wondering if there is such a way to join 2 classes and use them in same way as: className={doubleClass} {trasnform: {doubleStyling}}