top | item 12685091 Show HN: React Reactions – Slack, Pokemon, GitHub, Facebook and YouTube Pickers 28 points| casesandberg | 9 years ago |casesandberg.github.io 8 comments order hn newest [+] [-] roasbeef|9 years ago|reply I am seeing css styles in javascript more and more now. Is this a performance thing? [+] [-] ng12|9 years ago|reply 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|9 years ago|reply 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. [+] [-] newsat13|9 years ago|reply Glitch in chrome: https://share.viewedit.com/hpHseCYcRVRFowSoxWEV2H [+] [-] ht85|9 years ago|reply Glitchy in Firefox 47, Ubuntu 15.10https://snag.gy/1ELC2A.jpg [+] [-] henryboldi|9 years ago|reply Did you get permission from Slack to rip off their emoji picker like this? [+] [-] yefim|9 years ago|reply Along the same lines, did you get permission from Henry to use his name? [+] [-] bpicolo|9 years ago|reply It's like 95% similar to the builtin mac picker. (ctrl+command+space)
[+] [-] roasbeef|9 years ago|reply I am seeing css styles in javascript more and more now. Is this a performance thing? [+] [-] ng12|9 years ago|reply 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|9 years ago|reply 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|9 years ago|reply 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|9 years ago|reply 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.
[+] [-] newsat13|9 years ago|reply Glitch in chrome: https://share.viewedit.com/hpHseCYcRVRFowSoxWEV2H
[+] [-] henryboldi|9 years ago|reply Did you get permission from Slack to rip off their emoji picker like this? [+] [-] yefim|9 years ago|reply Along the same lines, did you get permission from Henry to use his name? [+] [-] bpicolo|9 years ago|reply It's like 95% similar to the builtin mac picker. (ctrl+command+space)
[+] [-] yefim|9 years ago|reply Along the same lines, did you get permission from Henry to use his name?
[+] [-] bpicolo|9 years ago|reply It's like 95% similar to the builtin mac picker. (ctrl+command+space)
[+] [-] roasbeef|9 years ago|reply
[+] [-] ng12|9 years ago|reply
It's more about getting locally-scoped, composable CSS than performance. It's similar in concept to CSS Modules.
[+] [-] doomtop|9 years ago|reply
[+] [-] newsat13|9 years ago|reply
[+] [-] ht85|9 years ago|reply
https://snag.gy/1ELC2A.jpg
[+] [-] henryboldi|9 years ago|reply
[+] [-] yefim|9 years ago|reply
[+] [-] bpicolo|9 years ago|reply