DEV Community

Discussion on: Vue or React?

Collapse
 
ghamadi profile image
Ghaleb

Can you define "more flexible"?

What would be an example of a task you cannot easily implement in Vue because of a limitation that does not exist in React?

Collapse
 
dennisfrijlink profile image
Dennis Frijlink

Not necessarily focused on limitations of Vue.js. First of all Vue.js is a Javascript Framework and React is a Javascript Library. So in practice you see that React is more flexible in working/programming. Think routing or state management. Vue.js has one router (Vue Router) and one state management tool (Vuex). In React you can choose whatever you want. For routing for example you can choose React Router, Hook Router, Reach Router and so on.

Thread Thread
 
dennisfrijlink profile image
Dennis Frijlink

Beside that there a lot of more libraries written for React than for Vue. Think of animation libraries. React has a lot! Framer Motion, React Spring and so on. Vue is way more limited in libraries like this.

Thread Thread
 
ghamadi profile image
Ghaleb

I see your point. Thanks for clarifying.

Thread Thread
 
dennisfrijlink profile image
Dennis Frijlink

Let me what you think about Svelte: bit.ly/3s2NwKh

Thread Thread
 
prograjkamal profile image
prog-rajkamal

TBH, that looks like a point on vue's side as vue router and vuex are official solution deeply integrated with vue, while react libraries are not official, so it fragments the ecosystem and are not as high quality as vue ones