|
|
|
|
|
by bobthepanda
1212 days ago
|
|
It used to be, that CSS-in-JS meant people naively writing something using a computed string to use the HTML style attribute, like so var style="color:blue;text-align:center;"
return <h1 style={style} />
and some CSS in JS frameworks compile down to pretty much that. However, this is a bad practice, because you will consistently see worse performance than just using css files and classnames instead. |
|