by superasn · 8y ago · 0 comments
A vue component is still as simple as {template: 'hi'}. You don't need webpack or any transliteration for it to work. Just drop the script tag like the good old jQuery and it's working! No wonder it was so easy to switch to it.
Transition from vue1 to vue2 was really simple. I'm sure the same will be true for v3.
I hate this misconception and wish it would just go away.
If you're referring to Create React App, it uses Webpack - just preconfigured so you don't have to fiddle with it before you start building.
isn't this just a little bit disingenuous
The other comment gives a perfect example and there are a few tutorials (although I do agree not very mainstream) that teach React without JSX/Webpack/Babel/etc.
edit: You are correct that you need transpilation for JSX but you don't need JSX for React. The confusion of JSX/React sounds eerily similar to how newbies confused jQuery for JS.
JS was not created for JQuery, and you can not used JQuery without JS.
Unfortunately it uses ES6 features. There's no ES3/ES5 demo without JSX -- https://reactjs.org/docs/react-without-es6.html uses JSX
As an aside, is that really a problem these days? All modern browsers now offer comprehensive native ES6 support. Unless you still need to support older platforms like IE or some of the legacy mobile browsers, it's mostly a non-issue.
But maybe I just sucked at vue.
If you've got any specific suggestions for improvements, please let us know! I'm always looking for ways we can make the docs better.
As a side note, React is separate from Redux, and Redux is definitely not tied to React. Here's a recent post about a team that opted to use Redux with Vue: https://snipcart.com/blog/redux-vue .
The naming doesn't help.
"Reducers" is just so academic. Maybe a term like "publishers"?
Of course passing data by props instead of receiving a lambda is a bit of a different paradigm already. Takes some getting used to.
If you did Ember or Angular1, Vue is much easier to grasp.
But I probably wouldn't look too much into React if I wasn't forced to do it in a project 3 years ago.