6 ms·
Both React and Vue will do what you want. React is more popular, but Vue is generally considered more pleasant to develop for. They're all third wave/ virtual D
by nailer 7y ago
Both React and Vue will do what you want. React is more popular, but Vue is generally considered more pleasant to develop for. They're all third wave/ virtual DOM based frameworks (after jQuery (first gen) and the original data-binding frameworks like Backbone (second gen) ).
If you want to make an educated bet about where things are going, you might want to learn Svelte, which abandons the virtual DOM approach for a compiler, allowing you to set values with a simple `=` and creating smaller, faster code (Svelte's output doesn't include Svelte, and there's no virtual DOM to keep updated). Svelte's actual coding experience is also pretty similar to Vue - single file components, etc. :)
- runawaybottle 7y agoI have no idea why you are getting down voted.
- sk0g 7y agoIn about 2 minutes after I read the two replies and checked out a link, the score of my comment dropped by 3, so I'm guessing someone's just mass downvoting everything for... Reasons.
- Udik 7y agoNow that I'm not the downvoted one, I can say this: I'd want to force every downvote to have an explanatory comment (or at least, an upvote on one). If you can't explain why you downvote something, then you probably shouldn't.
- runawaybottle 7y agoFor what it’s worth, I got down voted for asking ‘Why did OP get down voted?’. I agree, explain yourself.
- nailer 7y agoHN guidelines are not to discuss downvotes. https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- pier25 7y agoI didn't downvote, but I'd say it's because of the statement that "Vue is generally considered more pleasant to develop for" which seems totally anecdotal and subjective.
- Semaphor 7y agofwiw, the so 2019 survey had react and vue almost even with a slight react lead in loved, dreaded and wanted each: https://insights.stackoverflow.com/survey/2019#technology-_-most-loved-dreaded-and-wanted-web-frameworks https://insights.stackoverflow.com/survey/2019#technology-_-...
- sk0g 7y agoI've heard of Svelte, but didn't understand what set it apart from the others, so thanks for the pointer! Do you think it will gain much traction, or will there likely be another one inspired by it, but driven by a megacorp that pushes it out of the picture? My work has a react front end, not sure if there's lots of transferrable skills between the two. For one thing I'll have to learn basic web stuff like CSS, HTML and all, and that will transfer, at least.
- nailer 7y agoDid Vue have a megacorp behind it? Svelte was developed by Rich Harris, who works at the NY Times. Apple is hiring Svelte developers https://twitter.com/mansur_ashraf/status/1204542852581273600?s=20 https://twitter.com/mansur_ashraf/status/1204542852581273600.... I personally think it will be OK. :)
- 411111111111111 7y ago> Did Vue have a megacorp behind it? Yes, several actually. They are Chinese though, not American, so you might not know them as well.
- tashoecraft 7y agoI honestly don’t think svelte will ever become more than a niche framework/library, but the ideas it pushes will become mainstream.
- pier25 7y ago> but Vue is generally considered more pleasant to develop for If you live in the Vue bubble then of course you will get favorable opinions. I've been using both React and Vue for a couple of years and I don't think "Vue is generally considered more pleasant". Some people prefer one, some people prefer the other.
- nailer 7y ago> If you live in the Vue bubble then of course you will get favorable opinions. I'm not in the Vue community. When 'React vs Vue' was happening back in 2015 I was using a completely separate virtual DOM library (Ractive) so I'm relatively unbiased. I've just been coding, writing, and speaking about JS for a decade and I know many people who've tried both. They might be wrong, but React having a steeper learning curve (JSX is harder to pick up than SFC), a more variable developer experience (depending on state management libraries used) and more complexity than Vue is definitely the common opinion.
- pier25 7y ago> (Ractive) so I'm relatively unbiased Vue was heavily inspired by Ractive though. (btw I didn't downvote you) Edit: > but React having a steeper learning curve (JSX is harder to pick up than SFC) I don't know. Templates might be easier for beginners than JSX but OTOH with Vue you need to learn a lot of abstractions (eg: watchers, reactivity is not obvious, etc). I think the complexity of getting started with React is that you need to add more third party libraries plus configuring your dev tools with Webpack/Babel/etc. CRA solves that for you but it's a huge black box if you don't know what you are doing. I will agree that with Vue you can start directly with script tags a la jQuery and that is great for a lot of projects and beginner devs.
- wolco 7y agoThe complexity comes from small things. Not being able to use html closes a lot of doors. Have you ever wanted to just copy and paste html into a template script tag and have it render? With react you need to convert that first.. I want to grab a json list and display it in a li tag. With vue I fetch, assign to a variable and in the template v-bind it. With react I would write another component for the li maybe do a foreach. Watchers existed in jQuery. Not sure they are so difficult one would choose react most people would just avoid them.
- s_y_n_t_a_x 7y ago> React is more popular, but Vue is generally considered more pleasant to develop for. Bold statement. To me, more pleasant development is having everything typed. I couldn't imagine not having my props, styles, and state protected.