A big advantage of CSS in JS(X): One language (JS), not three (JS, HTML, CSS). One linter. One code style. One type system. One test system.
-
-
if you assume JS (esp. ES6+JSX) as the starting point, would you create a new *syntax* to style your components?
-
but, in a world where it exists and so much tooling for it and habits have been created, fine to interoperate as well
End of conversation
New conversation -
-
-
also using HTML/CSS makes it much easier for designers or others without JS knowledge to participate
-
they'll tell you their designers love writing JSX and CSS-in-JS.
-
I've worked with 8, and they were all fine. "No worse than rails partials" one said.
@TobiasBieniek@rauchg -
Why are you on the offense? People are being productive and having fun, what's your goal here?
@TobiasBieniek@rauchg -
tell us our experience is invalid? That we aren't more productive? That you know better?
@rauchg -
You're getting it backwards. I have no problem with your experience! A lot of problem with the evangelism.
-
You don't evangelize CSS-in-JS much and that's great. But others are selling it as a panacea.
-
In this case, it's not me, but the people selling the silver bullet, who think they know best.
- 4 more replies
New conversation -
-
-
when the job is build a UI I guess JS is a good enough tool for the job.
@rauchg -
disagree, JS is a *better* tool for the job
- 1 more reply
New conversation -
-
-
internal DSL that can use full power of general purpose programming > external DSL https://gbracha.blogspot.com/2014/09/a-domain-of-shadows.html?m=1 …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
heretic.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I agree. JS in CSS works. But it might not be the best tool.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.