6
21 Comments

VueJS vs React...

I'm having a slight developer existential crisis of sorts.

I'm a very junior developer, currently building out a side project called Forzeit, a smart weekly planner.

I've got to about 40% of the way to MVP in building it. Hasura backend with Vue3 frontend using TailwindCSS for the looks.

BUT.

Should I just be using React??

It always feels like every dev I meet uses and knows react well.

When a lot less know Vue. The online support is way richer for React. Vue has made things harder too with these 3 big changes they made from options to comp api to script setup.

So even when I do find packages and support, it ends up half wrong at least.

BUT (again).

Everyone also that I speak to who has used both, does often prefer Vue as a much cleaner, lighter, faster framework. React is used most as it's already used by so much big business but often is said to be pretty bloated.

Would be interested to know what mix of Vue Vs React Vs other frameworks there are being used too here?

on October 2, 2022
  1. 9

    No, you should 100% not throw away your work to replace a frontend framework. React vs Vue vs Angular vs Svelte is and always will be a little "Holy War" with no real winner whatsoever. If you do want to learn React do it at another point in time with a small pet project. It makes zero sense from a business perspective.
    Even from a developer perspective it is very unlikely that changing to an unknown framework will ease or speed up your process. The DX of React is also debatable, as you end up with a lot of uncompatible *sx files that need to be handled differently than the vanilla html templates from vue or angular. If you find vue3 to be painful consider porting back to vue2 or setting aside 2-3 days to learn more about modern vue and overcoming your current problems instead of shifting your problems to a different framework.

    1. 2

      It do be like that.

      I ended up rewriting stuff (backend) for my first ever company and only regretted it.

      Get to paying customers, you should be able to do that if you solve a painful enough problem.

      Neither vue nor react will stand in the way of getting there.

      If it's a problem in the long term you can still revisit and rebuild if you feel like it (but probably shouldn't either)

  2. 2

    React is better than Vue, but the best framework is the one you know.

  3. 2

    I think #1 priority should be getting to market and getting user feedback. You can always go back and change the frontend framework. Some of the posts below seem to have sunk cost bias and say there is no point in changing, but I think you should go where the expert devs are when you have the $ and resources to do so, instead of training them on a new framework. It might also be worth researching what stack your competitors are using...

  4. 2

    I prefer to use VueJS. Essential reason is you can create what you want faster. If you want to compare frameworks, you will see there are just milliseconds.

    You already built with VueJS. Continue with VueJS. Time is more important than JS frameworks.

  5. 2

    Which one of Vue or React are you more productive with?

    Pick the one you're more productive in, get the MVP in front of users, learn from from, and iterate.

  6. 2

    Just stick to whichever you are most comfortable with. Ultimately, it is about what you can produce and not what programming languages you can write.

    If you already know Vue and you can build great products with it. That is all it matters.

    Since, you mention that you're a junior developer, feel free to explore both and decide for yourself which one you like most.

  7. 2

    Ultimately there is not a big difference. Everything is a preference. Also, speed is not a problem. React isn't slow by any means.

  8. 2

    What's your goal with the project? If it's to learn languages and frameworks then do whatever you feel like. Why not write it in another framework to get a feeling of how they work.

    If the goal is to build a business, then rewrites are usually not a great idea. React and Vue are both solid choices.

  9. 2

    I've used both and share the same feelings. I'd add that both are good options, you wont make a (big) mistake by choosing either one so don't stress too much about it. It's like should I get a lambo or ferrari. One big advantage of react though is available talent, seems easier to hire for react than vue, so if that is very important for your project then go with react.

  10. 1

    The idea that support for react is richer is, imo, wrong. There may be more of it, but it is a lot less accessible and understandable for a beginner. Way more jargon etc

  11. 1

    what about something simple as jquery ?
    where you actually knows what is happening and no virtual dom's and all that crap ?

  12. 1

    I can't answer all the technicals, but we did a major code-rewrite last year from VueJS to React, and it's delayed everything by 1 year!

    We're a design tool, you could describe it as a cross between Figma and Canva for both non designers and pro designers to create beautiful content. The code rewrite had to be done to make our app more efficient and tackle more complex problems.

    It made conversations with our VC super tough as all our goals got pushed, but sometimes you need to think about the long game.

    1. 1

      why did you abandon vuejs? what is it that react is better at?

  13. 1

    Thanks all, sticking with Vue. I do generally love it and I think the growing pains of the docs online from the updates they made are countered by vue3 really is so nice to use actually. I just need to get over some short term junior dev woes of rollercoaster emotions when packages won't work 😂

    And get this app built! I'm in a productive position generally so not time to destroy that with more learning.

  14. 1

    Stick with Vue. It's simpler overall, doesn't change as often and has a lot of the same features as React.

  15. 1

    I'm a very junior developer

    Me too! That's precisely why I recommend React to you. I think React is much more like JavaScript than Vue. Vue's interesting tags really challenged me. So I think React would be a better choice for a quieter start, but whenever I chat with a senior, he tells me that framework wars are pointless.

  16. 1

    I guess it all depends of what you want to accomplish with your side project.

    I'm a very junior developer, ... I've got to about 40% of the way to MVP in building it.

    If your primary goal is to learn and improve your skills as a developer then now might be the perfect time to try react and see how far you get within a month. After that you can decided which framework suits you more. Honestly having worked with Angular, Vue and React at different jobs over the past years I gotta say that they are all pretty similar, but you will only find that out if you try different things - Personally I'll stick with react.

  17. 1

    It's always easier to answer these kinds of questions if you know what your goals are.

    So, what are your goals?

    Do you want to learn as many frontend frameworks as you possibly can?

    Do you want to finish what you've already built as soon as possible?

    Is something else most important to you?

    Only you can answer these questions.

  18. 1

    I would say consider going with React for reasons not directly related to your side project, but where you are at as a developer. No doubt the more time you spend on your project the more you will gain expertise in whatever framework you're using.

    From my view the frontend job market is majority React/TypeScript. If by chance you want to take gigs or do remote work to help fund your project. Having React experience will make those opportunities easier to get.

    1. 1

      I think luckily for me, I'm not going to be looking for work for others like that as have another business to fund me. So can focus on language decisions for just building my own stuff :)