News for hackers. Stuff that matters.
Re:Show HN: React Reactions – Slack, Pokemon, GitHub, Facebo... by roasbeef on Tuesday October 11, 2016 @11:40AM (#12685391)
I am seeing css styles in javascript more and more now. Is this a performance thing?
Re:Show HN: React Reactions – Slack, Pokemon, GitHub, Facebo... by ng12 on Tuesday October 11, 2016 @02:39PM (#12687297)
Worth noting that the same author created a fairly popular library for JS styles: https://github.com/casesandberg/reactcss

It's more about getting locally-scoped, composable CSS than performance. It's similar in concept to CSS Modules.

Re:Show HN: React Reactions – Slack, Pokemon, GitHub, Facebo... by doomtop on Tuesday October 11, 2016 @11:56AM (#12685574)
I believe it's more of a convenience, and React-based projects are setup for it. You can avoid dealing with the global cascade and there's no need to maintain a parallel set of files for styling; it's all in the JavaScript.