DEV Community

Cover image for React VS Vue | What about them?

React VS Vue | What about them?

Atif Aiman on August 19, 2021

There are a lot of Javascript frontend framework in market right now, in which their hype to their own. The famous 3 - Angular, React and Vue (Svel...
Collapse
 
1219664875 profile image
1219664875

Personally, after job-searching for a while, seems like react offers more job opportunities than Vue. Probably for a beginner like me whose depending on making myself relevant in the industry, React is the go-to but for mid to senior dev who has free time and achieve job security, learning Vue for extra knowledge is always a plus.

Collapse
 
iamntz profile image
Ionut Staicu

I think Vue is much more beginer-friendly compared to React. Heck, you could just import Vue and start hacking around, adding reactivity as needed.

On the other hand, React will be a better bet in the long term, due the fact React is baked by so many organizations (Facebook, WordPress, even Microsoft IIRC)

Collapse
 
hasnaindev profile image
Muhammad Hasnain

Personally, I found Vue to be complex when I got into creating custom components. React is way more intuitive because you don't have to register components in the air. Just import and "call" the component.

Collapse
 
alserembani profile image
Atif Aiman

By using Composition API, you don't need to register your component anymore, you can just use the same way React does! At least, that is how I feel with Composition API offered by Vue 3, to reduce the complexity behind Vue architecture.

Collapse
 
alserembani profile image
Atif Aiman

I had to agree. Since Vue is much closer to the native HTML compared to React, Vue has a relatively lower learning curve to begin 😁.

JSX here, JSX there, where in reality it is actually an object 🙃😂

Great point there

Collapse
 
gochev profile image
Nayden Gochev • Edited

in vue js you need to know how to make if or for and etc.. in react you dont :)

Thread Thread
 
alserembani profile image
Atif Aiman

That is the good take of JSX, since they are Javascript in itself, so you can just use a standard conditions and loops. So, it's up to devs to optimise it the way they want.

Differ with Vue, they provided v-if, v-for and other binding method, so Vue will manage the optimization. There's a good take here as well, but of course, some prefers more dynamic optimization.

Collapse
 
alserembani profile image
Atif Aiman

If you have a free time, then you should! Vue is also a cool framework, which has its own unique take on structuring your code.

Personally, I am proficient in React, given my experience. Having to move to Vue for my current project because of certain requirement, I thought it might take long time to adapt because I tried to explore Vue 2 before. But once they introduce Vue 3, and the existence of Typescript support and Composition API, my transition is as smooth as butter!

Collapse
 
oniichan profile image
yoquiale

Vue is more intuitive and easier to understand

Collapse
 
alserembani profile image
Atif Aiman

My take is React is much easier, when you organise your directory, configs and codes better. And so does Vue!

In fact, the way I structure my current Vue project the same way as I implement React project. It's all back to your styling and discipline. Readability is one thing, but of course, every dev has his/her own styling.

My opinion might differ, but the beauty is in the eye of beholder ✨

Collapse
 
fyodorio profile image
Fyodor

Hi Atif,
Thanks for the great overview and comparison 👍
The missing part that would be interesting to read about is how both frameworks approach CSS.

Collapse
 
alserembani profile image
Atif Aiman

I might do this for the next series then 🤔

Nice idea, @fyodorio !