5 ms·
This really boggles my mind. Having looked very closely at both (and being a react developer full time), I can not recognise this assessment. I just can't see h
by tomelders 9y ago
This really boggles my mind. Having looked very closely at both (and being a react developer full time), I can not recognise this assessment. I just can't see how people can claim that Vue is simpler or easier than React.
React is idiomatic javascript. Vue is it's own quirky thing that doesn't feel anything at all like Javascript to me.
- twfarland 9y agoAgreed. Pure views are much simpler.
- bpicolo 9y agoYou can write prop-only, pure views in vue. :)
- overcast 9y agoI'm not sure what feeling anything like JavaScript has to do with the discussion. No one asked which framework is most like JavaScript. I don't think JSX turning JavaScript into some weird XML/HTML hybrid feels like JavaScript either. Sure you can use it without it, but why would you? Vue works for me and others, whereas React works for you, and others. Let's just keep working on our projects.
- tomelders 9y agoBecause the rest of your application is Javascript. Less cognitive burden when you switch to working on different layers of your application.
- overcast 9y agoExcept JSX isn't JavaScript, and no one uses React without it. So it's arguably just as much of a cognitive burden.
- irrational 9y agoWait, do you really experience cognitive burden when switching between html, js, and css? It surprises me if you do.
- tomelders 9y agoI'm talking about switching between a context where there are first class functions that can be easily passed around, to a context where there's some archaic and magical, non idiomatic convention based on string based dependency injection, or magical way of writing attributes.
- Shywim 9y agoDepends what you call idiomatic. I dont think JSX is really a JavaScript idiom, more like a HTML idiom applied to JavaScript which happen to be often used together.* At the end of the day, I think that calling something idiomatic is subjective and so, varies from people to people. *: to be clear, my point is many people use JSX with React because it feels idiomatic (I manipulate HTML/DOM, so why not just write with HTML-like syntax?) but it is not idiomatic to JavaScript and I don't think the other React APIs are that nice to use. If I didn't use JSX with React, I'd tend to use other framework because, in my opinion, they make more sense.
- l1ambda 9y agoJSX is optional.
- oceanswave 9y agoAnd vue optionally supports Jsx, so original comment or using it as a reason why ‘react sucks’ is being super pandentic. It’s ok to have multiple frameworks!
- Touche 9y agoOptional features contribute to a tool's complexity, especially when every single example assumes you are using said optional feature.
- bpicolo 9y agoIt's optional, and also not optional. Nobody is using React without JSX in practice, because it's ugly and verbose.
- irrational 9y agoDifferent peoples brains work differently. React clicks with your brain, but not Vue. I've been doing web development since 1996. I read through both the React documentation and the Vue documentation. Vue just clicked with my brain. I totally groked it from the beginning. React... not so much. Vue has been amazing for us so far.