DEV Community

loading...

Discussion on: Vue or React?

Collapse
dskaiser82 profile image
Daniel Kaiser • Edited

I started with Vue and worked at start-up where I implemented. I now work a big brand where the architecture is react. Some comments just poo poo on Vue and claim React is better are Devs that haven't built production apps with Vue.

Vue:

  • Single Files Components are great
  • In SFC's knowing where methods, state, render life cycles go is just easy to read
  • Personally I found global state management in Vuex easier than Redux or Context API
  • No jsx weirdness
  • scoped sass is easy
  • better, easier to read conditions v-if, v-else

React:

  • Better built for super modularity
  • Better for child components to update parent state
  • React hooks, once you use and understand them are nice
  • Jobs, jobs, jobs > marketshare
Collapse
ghamadi profile image
Ghaleb Author • Edited

Can you elaborate on the "super modularity" point?

I like the point made in the Vue.js docs:

One important thing to note is that separation of concerns is not equal to separation of file types

Beyond personal preference, and I will agree that this seems highly subjective, is there a reason why React apps would be "more modular"?

The jobs point is spot on. So far I find it to be the only compelling reason for a newbie like me to consider React.

Collapse
dskaiser82 profile image
Daniel Kaiser

By Super Modularity I mean everything is a component. So much so, in large systems, you need a design pattern like Atom Design Methodology: atomicdesign.bradfrost.com/chapter-2/

I think React, community and docs, point you in that direction. Vue can be the same way, in my opnion, but I think react more so