4 ms·
Still rocking jQuery whenever I can. It can grow into an unmaintainable mess, sure, but it doesn't have to. First time I saw jQuery: Crazy easy and widely comp
by tambourine_man 10y ago
Still rocking jQuery whenever I can. It can grow into an unmaintainable mess, sure, but it doesn't have to.
First time I saw jQuery: Crazy easy and widely compatible, Ajax, selectors and animation - sold!
First time I saw React: Split your UI into components, write them in JavaScript (with optionally mixed in markup to make it more tolerable) - Hmm O…K….
Managing UI state can be complicated, but to me, not enough to justify the amount of complexity and abstraction added by React.
If you organize your code so that only a single function can act on a specific block and emulate OO/namespaces in CSS, instead of attaching functionality to every click and overwriting stuff with !important, you'll be fine. It's not that hard, but maybe that's just me.
It's nice that the Virtual DOM is really fast (even thought I don't usually need that much speed) and that I can render it on the server (even though you can probably kiss your semantic markup good bye) and one way data binding seems a good idea, but again, I don't think it's a problem I have.