A community for discussing frontend engineering news, best practices, and new technologies.
June 16, 2018 at 1:55pm
Having used both Vue and React, they share a lot of similarities. Both encourage you to think about your interfaces as isolated components that receive props and may manage some local state. Both allow you to use JSX if you like. Both are really great tools!
In my experience, Vue introduces you to the concepts more gently. The default templating feels similar to Angular, with it's
v-directives. Building your components using the
Vueobject will feel familiar if you have experience with Ember, Backbone or similar MV* frameworks.
React is definitely more simple. It provides only what's necessary and gives you (nearly) complete freedom over how you use it. But that simplicity can sometimes be frustrating if you're looking for guidance on the right way to do something. Vue is slightly more opinionated, but I've felt that it's opinions help guide towards doing things the right way, which can allow you to be more productive in the long run. Plus the Vue documentation has always been great; very clear and easy to understand! Though React's documentation has improved a lot recently.
All that said, I'm not sure I have an opinion on which is better but Vue definitely deserves the popularity it's gained. To me, it feels like the better tool if the visual design of your app is more complex. When you're focusing on markup and styling, having everything in one
.vuefile is a great experience! Still, you can certainly accomplish all the same things with React. With Vue, you get a few more things out of the box and a bit more guidance and structure. Personally, there are times when I value that structure more than the freedom I get from React.
June 19, 2018 at 10:03am
June 19, 2018 at 5:53pm
From my experience using both its the easy if usage and the fact that I feel it's more friendly to begginers and makes people feel more productive mainly because of how amazing their docs are!
I use it mostly for small projects because it feels faster mainly with forms and use react for bigger projects not that they can't be interchangeable