3 ms·
Looks really great. Why the React dependency though? Would be more flexible, faster, and avoid dependency hell if it was vanilla JS.
by JDDunn9 11y ago
Looks really great. Why the React dependency though? Would be more flexible, faster, and avoid dependency hell if it was vanilla JS.
- tajano 11y agoBecause React's cool for the next five minutes, and now we need to re-implement everything in React.
- ultrafez 11y ago"dependency hell" is a bit of an exaggeration. It has one dependency.
- JDDunn9 11y agoDependency 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)
- andrewingram 11y agoIn 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.