DEV Community

Discussion on: Vue.js vs. React — Not Your Usual Comparison

Collapse
 
jfmacdonald profile image
John Farrell MacDonald

Knowing, or at least familiarity, with React can make you a better Vue developer. I lead a small team developing e-learning web apps using Vue—and JavaScript is not their strong point. Vue was the clear choice precisely for the points that Domagoj raised. However, in developing base components, I find using render functions with JSX more efficient and powerful and cleaner than templates. Also, the composition API makes for more reusability. Using JSX, Vue looks a lot like React. The advantage of Vue is that high-level components can use HTML templates while core functionality is in JavaScript. That’s a win for everyone.

We’ve moved to Vue 3 for recent projects, and I have to say that, while worthwhile, it's been a bumpy road. The ecosystem isn't quite there yet, and getting everything in the package.json to play nice has been a challenge.

For a personal project, I considered using Next.js rather than Nuxt.js and was blown away by how smoothly everything worked with Next. Maybe that’s a red herring, but it does seem the React ecosystem is larger and more flushed out than the Vue ecosystem—particularly now that Vue is transitioning to Vue 3. In comparing Vue to React, the ecosystem too should be considered. I want to focus on my app, not the tools!

Collapse
 
domagojvidovic profile image
Domagoj Vidovic

TBH I haven’t tried using JSX in Vue yet, but I’m definitely gonna do that.

About Vue 3 - still keeping it 😉