5 ms·
Show HN: React Reactions – Slack, Pokemon, GitHub, Facebook and YouTube Pickers
- roasbeef 10y agoI am seeing css styles in javascript more and more now. Is this a performance thing?
- doomtop 10y agoI 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 10y agoWorth noting that the same author created a fairly popular library for JS styles: https://github.com/casesandberg/reactcss https://github.com/casesandberg/reactcss It's more about getting locally-scoped, composable CSS than performance. It's similar in concept to CSS Modules.
- henryboldi 10y agoDid you get permission from Slack to rip off their emoji picker like this?
- ht85 10y agoGlitchy in Firefox 47, Ubuntu 15.10 https://snag.gy/1ELC2A.jpg https://snag.gy/1ELC2A.jpg
- newsat13 10y agoGlitch in chrome: https://share.viewedit.com/hpHseCYcRVRFowSoxWEV2H https://share.viewedit.com/hpHseCYcRVRFowSoxWEV2H