5
15 Comments

React or Vue?

When building a web app, do you prefer React JS or Vue JS?

Comment below πŸ‘‡

on June 19, 2020
  1. 6

    My preference is Vue, (but I use both when needed) in React everything is Javascript, I like how in Vue I can still use HTML for HTML, CSS for the CSS and JS for the JS. I like not using JSX, it's awkward to me. I like just dropping the Vue library into a legacy site and using it right from the <script> tag without a big build system.

  2. 4

    I've tried both. VueJS was very easy to learn, but I am learning React instead now mainly because of a post I did a while back (https://www.indiehackers.com/post/the-ongoing-question-react-or-vue-79fdae38a5). Many Indiehackers said it would benefit me in the long run to learn React so that is the path I chose πŸ˜„βš›

  3. 4

    I will suggest you to go for sveltejs svelte.dev

  4. 3

    I like the progressive approach of vue. I haven't used it in a real project yet but I like that it can be used as a better jQuery. If I want something more advanced it'll also be fine and I don't think I'll ever need the advantages React provides. I also don't plan to look for dev jobs so I have the freedom to choose what seems more fun, that's why I went python (django) + vue

  5. 3

    In choosing any library or framework, one of the most important things I look for is how big the community is. You don't want to be in the middle of your project and realize that a plugin you need is not available, or there's a bug that no one else has encountered yet!

    So I'd pick React. I'm sure Vue is basically equivalent in every other aspect, but the React community is much larger.

  6. 2

    I use both but I prefer VueJs because of its router and .vue files.

  7. 2

    I've gone for React (well migrating to Preact) for Portabella. A lot of tooling around it and pretty conceptually simple.

    1. 1

      You should add a loading state or something until the style is loaded, because it displays the page unstyled for a fraction of second and it's a weird experience, probably leaving visitors wondering "what the hell was that".

      1. 1

        Thanks! Yeah I have been aggressively trimming the landing page to get a high score with googles page load tool, guess I went a little too far there.

        Will look into it.

  8. 2

    Never tried Vue, and I don't think I will ever. Not because I'm a react hardcore fan just because it doesn't matter! if you want to build something just do it with what you already know. Or even better no-code if you can

    1. 2

      Agree 100%. I use Vue and I'd never say "You should use Vue" - just go with what you like, what makes you feel confident, and let's you get stuff done quickly.

      It's like Ruby vs Python - they both do the same thing, just a matter of preference.

      1. 2

        It's true only if you do something small alone. Once you need to expand it really does matter.

        Questions will be either you need to find someone for your project:
        a) how easy is it to find developer
        b) what's the price

        Or you going to join some project:
        a) how easy to find in chosen language (how popular it is)
        b) what do they pay

        Another thing to consider is availability of existing solutions (libraries, modules, eco-system).

        It's not only about preference.

  9. 1

    Use whatever you feel happy with during coding.

    Im currently in (hopefully, was) a loop to find which fits me the best.
    I used React for years, but in the last 3 years I used Vue. Then about half year ago I found Svelte.

    I made several smaller apps in each to see which is better in the following points:

    • code readability
    • how it feels during coding
    • bundle size
    • loading time
    • performance
    • community / available libraries

    Tested with SPA and SSR (nextjs, nuxtjs, sapper)
    (Not measured in a scientific way, just with the brower's developer tools)

    Svelte was the best. I really like the syntax sugar, no VDOM, small bundle size and that its pretty fast.

    Nervertheless, I will still go with React because of the community.

  10. 1

    I have worked more in React at previous jobs, but I prefer Vue, which I'm using for the front-end of Yomi.ai.

  11. 1

    we're using react right now, but, i used vue for my last major project. both are fine.

  12. 1

    This comment was deleted 6 years ago