Needs advice
on
ReactReact
vs
Vue.jsVue.js

From a StackShare Community member: 鈥淢y company has a Back Office Dashboard that was originally built in AngularJS 1. We are looking to upgrade it. I hear a lot about React and Vue.js, but not sure which one to pick."

READ LESS
2 upvotes250 views
Replies (17)
Avatar of htko89
Front End Developer at Brandfire Marketing Group
Recommends
Vue.jsVue.js

I use Vue.js because it allows me to keep dev momentum. Vue includes many things out of the box that React doesn't include while remaining "lighter" than angular. For example: - Vue single file components include template, logic and styling out of the box. It also allows you to use language parsers such as Pug to write your component template and SCSS for styling. - Vue uses a simple Object to initialize an instance - Vue has support for transitions out of the box (say, for example, a fade in-out between component swaps, or adding an element to a list) - Vue has observers and two way binding like angular - Vue can conditionally render content in templates via template conditional tags

However, Vue is opinionated because of all those points. React is much more abstract and much closer to actual javascript. - React's state is a variable that lives in the constructor of the class component. - Reacts components are JS native classes or functions. - Devs are free to implement transitions, styled-components on their own. Styled-components however, is not as intuitive as Vue's CSS/SCSS support. - React is a bit less intuitive for conditional rendering, as it relies on methods or ternary operators to render template conditionally. - JSX actually compiles down to javascript.

It really depends on your needs. Vue is most popular on Github but React has a huge demand in hiring (Mostly to convert existing angular or legacy applications to React). React is backed by Facebook and has more highly skilled contributors than Vue, though not to detract a single bit from Vue's own skilled contributors. If you're looking for developers, it's much easier to find seasoned react devs, at least as of Jul 2019. If you're a marketing or news agency that has deadlines, Vue's efficiencies may be the best, however, a large corporation may favour React since it has more support and is more of an "open slate" so to speak.

READ MORE
(htko.ca)
6 upvotes947 views
Avatar of timbergus
Web UI Developer at Globant
Recommends
ReactReact

I decided to focus on React as my main #frontend framework. It's lightweight and as near to JavaScript as a framework can be. It allows me to follow most of the standards and good practices. It helps me to use new methodologies like #componentization or #CssInJs. It has a rich ecosystem of tools and libraries and clearly is the main web framework nowadays.

READ MORE
12 upvotes4 comments3.2K views
View all (17)
Avatar of Tony Ko

Tony Ko

Front End Developer at Brandfire Marketing Group