by s_y_n_t_a_x · 6y ago · 0 comments
I see why Vue was created, but I don't see why it's still around.
React has solved the complexity pain points, it's easier to develop in React than Vue now (imo), and Vue has just been copying features.
Not to mention the massive environment and cross-platform access (I don't see Microsoft making a react-windows-vue fork).
Also, if you want a job, React is far more popular (look at the hiring threads)
I would recommend Create React App using a TypeScript template.
> npx create-react-app demo --template typescript
edit: you guys can downvote all you want, I'm simply showing you the other side. I already use React, I don't care if you do or not.
Because a lot of devs in FE-land have little experience, so they still have to find out the hard way how some stuff breaks.
Like the "stringly typing" (a.k.a. no type safety because we use strings to refer from one bit of code to another) you see a lot in Vue: it is plain evil and can only be fixed by a really clever IDE or a new version of Vue that breaks compatibility.
If someone needs to change an H1 tag of X-component I don't have to do it and I trust that an HTML (I don't even know what you call someone who exclusively uses HTML at this point) expert, can do it.
I haven't developed much with React, but I suspect it has the same issues as template engines; pug, mustache, etc. That is, it's so intuitive to JS devs that simple tasks can no longer be performed by low-level HTML developers. Which means that some FE or FS developer is going to get tasked with menial data entry work when we need to rephrase a paragraph or header.
I don't use TypeScript either. I don't really have issues with typing. I've been developing for almost 8 years, primarily with JS but also GOLang and PHP. Not sure if I'm doing something terribly wrong or what. But I haven't had a typing bug that takes more than like 10 seconds to solve, and they're rare.
I do agree, the job market is overwhelmingly React. Might be because of React Native.
React does not have low barrier entry. you can't just open notepad, edit blank index.html, include react.js via script tag and tinker with your html in 10 minutes to create simple widget - you need additional tooling, typescript compiler, etc. Vue is for people who used jQuery before and want to go reactive in shortest time possible.
You can choose how much React you want. You don't need tooling or JSX even.
A React code base feels like real programming comparably. I always recommend it much more.