Re:React Color – Color Pickers from Sketch, Photoshop, Chrom...
by JDDunn9 on Monday August 17, 2015 @11:07AM
(#10073483)
Looks really great. Why the React dependency though? Would be more flexible, faster, and avoid dependency hell if it was vanilla JS.
[ Parent
| on HN ]
Re:React Color – Color Pickers from Sketch, Photoshop, Chrom...
by ultrafez on Monday August 17, 2015 @12:28PM
(#10074150)
"dependency hell" is a bit of an exaggeration. It has one dependency.
Re:React Color – Color Pickers from Sketch, Photoshop, Chrom...
by JDDunn9 on Monday August 17, 2015 @01:17PM
(#10074552)
Dependency hell is from when multiple components depend on the same framework, but work with different versions. Since React is pre 1.0, you can expect the API to change a bit. If you build an app with multiple React components, you'd better hope all of them are well maintained, or you'll break some scripts when upgrading React (which you'll need to do for other scripts' bug fixes)
Re:React Color – Color Pickers from Sketch, Photoshop, Chrom...
by andrewingram on Monday August 17, 2015 @01:16PM
(#10074542)
In fairness. The vast majority of the code in this library is describing the UI, and event handlers, which is exactly what React is used for. It's not like there's a ton of non-React code in here that could be abstracted out into a separate library.