6 ms·
React is the new jQuery
- paulhodge 10y agoReact is nice and it's on the right track, but it still has a ways to go before it takes jQuery's crown. JQuery is absurdly useful, it's downright silly how much you can get done with jQuery.
- mercer 10y agoAgreed, even though I prefer using React as much as possible, I have to admit that there are times where, even on a React project, I am tempted to just use jQuery as well. Which is not a great idea.
- skrowl 10y agoDid... did he really call React "minimalist"?! I'm not sure this guy has ever attempted to build any actual webapps with React, because that's certainly not a term that anyone would use that had.
- rk06 10y agoI bet 10$ that he can not even do "hello world" in react.
- brian_c 10y agoYou can probably use 90% of React's functionality with like, four or five functions and four or five component lifestyle methods. What's not minimal about that?
- bryanlarsen 10y agoReact by itself is nice, clean, minimilistic, et cetera. Nobody uses React by itself. Add in ES6 transpiling, a data system (redux & friends), server side rendering, routing, and now it's complicated. jQuery doesn't include any of that stuff, either.
- ergo14 10y agolike... you almost end up writing your own angular/aurelia/otherframework ;-)
- mercer 10y ago> jQuery doesn't include any of that stuff, either. That's a really important point. I still often use jQuery because I don't need 'any of that stuff' and for a bunch of different reasons (other developers, client already using jQuery, etc.). But it's surprising how often these days my clients want/need stuff where jQuery would not be ideal and React can take care of it all.
- rk06 10y agoClickbait title by another fool. when will it stop? @author, some of the mistakes you made: >It’s easy to learn and reason about. it is not easy to learn. though once learned yo ucan easily reason about. >It enables a clean way to break your interface into smaller isolated blocks. jsx is not clean by an measure. it is just better than using React.createElement() >It brings HTML and JavaScript closer together. its XML, not html
- deleted 10y ago[deleted]
- lwakefield 10y agoI thought this was going to be a "jQuery is old, bad and React is going down the same path" post. Boy, was I wrong.
- k__ 10y agoWell, if it's really the new jQuery, it will be loved by jQuery enthusiasts and hated by people who already hated jQuery :D
- kafeltz 10y agoFor me, it seems the author have just using reactjs and got loved with it. Just an emotional issue that will disappear fading out. People normally get in love when they do some fancy dom manipulation with few lines of codes. But experience shows different.
- taesu 10y agoWhat is this journal like post doing on hackers news? Not intellectually intriguing, it's just somebody's daily-journal? I don't know much about react, but is it drop-in replacement for jQuery? I believe not
- ruiramos 10y agoClickbait
- ericclemmons 10y agoHaving worked on a project recently where we chose jQuery (because it was already on the page and we didn't want to delay page load), what I missed about React was the luxury of re-rendering the view from state. Doing so with jQuery blows away the DOM (causing inputs to lose focus), so we ended up with the usual jQuery soup referencing the DOM for state.
- mercer 10y agoMy rule of thumb is that React is a good solution for any site that needs something more complex than simple, slideshow-level js, or a site that more than one slideshow-level widget (slideshow + order basket, etc.).
- rssfrncs 10y agowhy not vue.js :(
- iopq 10y agoI wish you could downvote fluff pieces like this
- dang 10y agoYou can certainly flag them.
- vilmosi 10y agoGoogle trends and the job market say otherwise. React still has a long way to go to match jQuery. Plus it's just a view layer, hardly something compelling.