4 ms·
The points you've listed are the very reasons why i would prefer React actually ... - JSX fixed all the templating issues from 10 years ago, i see no reason to
by mlsarecmg 9y ago
The points you've listed are the very reasons why i would prefer React actually ...
- JSX fixed all the templating issues from 10 years ago, i see no reason to go back to dependency injection, scope loss, arbitrary code-in-html expression and a semi-javascript accent
- Presentational view logic belongs to the controller while business logic is elegantly abstracted in React: view=fn(state). There's no point in ripping view creation from the presentational layer.
- Context and higher order components. Can't have those in an imperative architecture.
- v-for is not sane to me. Also odd, being forced to mix-in extensions for the simplest basics that go beyond the few presets Vue provieds: https://github.com/Krizzu/vue-for-range https://github.com/Krizzu/vue-for-range A React user doesn't solve problems by searching the internet for framework specific solutions, they import _ from 'lodash' and use _.range, like everyone else does.
- {condition && <div>hello javascript</div>}
- We have suffered through two-way data bindings with Angular already
- Vuex is not native. It mutates state by aggressively transforming state into setter/getters, with nasty edge-cases. Once Vue switches to version 3 using proxies, you'll maintain two incompatible codebases. React has Mobx, even though Redux is great. Also lots of lean and promising alternatives like Unistore.
- Knowing React you don't rely on documentation (though official docs are on point). It is simple enough to grasp it after looking at a view examples once. The api surface and cognitive overhead of React is a tiny fraction of Vues. Coming from Angular it is amazing that one month of learning and half a year of consulting docs turned into a week and a couple of months consulting with Vue. Yet, you can learn React fully in the shortest amount of time while simply remembering the few things you'd need to know. A generic round-trip, for instance the one at egghead, costs you 60 minutes total.
- http://www.npmtrends.com/angular-vs-react-vs-vue-vs-@angular/core http://www.npmtrends.com/angular-vs-react-vs-vue-vs-@angular...
- deleted 9y ago[deleted]
- deleted 9y ago[deleted]
- hungerstrike 9y agoThese are exactly the same reasons that I think React is the best. Vue looks like it's going backwards compared to React. Furthermore, you get native mobile apps for free with React Native. Also, React has a much, much bigger community and bigger companies supporting it.
- mlsarecmg 9y agoNot just mobile apps: Windows: https://github.com/Microsoft/react-native-windows https://github.com/Microsoft/react-native-windows Macos: https://github.com/ptmt/react-native-macos https://github.com/ptmt/react-native-macos Linux (Qt): https://github.com/status-im/react-native-desktop https://github.com/status-im/react-native-desktop AR: https://github.com/HippoAR/react-native-arkit https://github.com/HippoAR/react-native-arkit VR: https://facebook.github.io/react-vr/ https://facebook.github.io/react-vr/ TV: https://github.com/react-tv/react-tv https://github.com/react-tv/react-tv Shell consoles: https://github.com/Yomguithereal/react-blessed https://github.com/Yomguithereal/react-blessed Word: https://github.com/nitin42/redocx https://github.com/nitin42/redocx Pdf: https://github.com/diegomura/react-pdf https://github.com/diegomura/react-pdf 3d: https://github.com/Izzimach/react-three https://github.com/Izzimach/react-three Sketchapp: http://airbnb.io/react-sketchapp/ http://airbnb.io/react-sketchapp/ Keynote: https://twitter.com/nishb1/status/913744410537537536 https://twitter.com/nishb1/status/913744410537537536 Hardware: https://github.com/iamdustan/react-hardware https://github.com/iamdustan/react-hardware Samplers: https://twitter.com/GabeRicard/status/911989894267973633 https://twitter.com/GabeRicard/status/911989894267973633 And so on ... Finally being able to transfer knowledge and code, and due to the generic nature of React in some cases even everyday eco-system packages can be applied. For instance: https://github.com/gaearon/react-blessed-hot-motion https://github.com/gaearon/react-blessed-hot-motion (native console app using plain react-motion to move stuff around).
- buoyantair 9y agowew dude o.o