frankcollins3 / fill_container

codecamp team project updated with new icon screen menu + puppeteer icon search, GraphQL, redux, relational psql !mongo, and accuweatherAPI
1 stars 0 forks source link

object literal can only have 1 style property of it's kind. [7:28pm] #229

Closed frankcollins3 closed 1 year ago

frankcollins3 commented 1 year ago

this usage calls for: rotate && scale, both values for the transform property.

Screen Shot 2023-06-18 at 7 24 45 PM

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}}

frankcollins3 commented 1 year ago

const transformers = ["rotate(90deg)", "scale(0.25)"].join(" ") works exactly the same. pretty cool. thought it'd fail.

[7:32pm]