Show HN: React Reactions – Slack, Pokemon, GitHub, Facebook and YouTube Pickers (casesandberg.github.io) 28 points by casesandberg 9y ago ↗ HN
[–] roasbeef 9y ago ↗ I am seeing css styles in javascript more and more now. Is this a performance thing? [–] doomtop 9y ago ↗ 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. [–] ng12 9y ago ↗ Worth noting that the same author created a fairly popular library for JS styles: https://github.com/casesandberg/reactcssIt's more about getting locally-scoped, composable CSS than performance. It's similar in concept to CSS Modules.
[–] doomtop 9y ago ↗ 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.
[–] ng12 9y ago ↗ Worth noting that the same author created a fairly popular library for JS styles: https://github.com/casesandberg/reactcssIt's more about getting locally-scoped, composable CSS than performance. It's similar in concept to CSS Modules.
[–] henryboldi 9y ago ↗ Did you get permission from Slack to rip off their emoji picker like this? [–] yefim 9y ago ↗ Along the same lines, did you get permission from Henry to use his name? [–] bpicolo 9y ago ↗ It's like 95% similar to the builtin mac picker. (ctrl+command+space)
8 comments
[ 2.8 ms ] story [ 34.3 ms ] threadIt's more about getting locally-scoped, composable CSS than performance. It's similar in concept to CSS Modules.
https://snag.gy/1ELC2A.jpg