Vue vs React: Battle of the Javascript Frameworks

  • I’ve created two nearly identical sample applications, one in Vue and one in React, if you’d like to give either framework a shot in the context of the samples in this article.
  • The biggest difference is that React popularized a Virtual DOM (we’ll get into this later) and created a new syntax called JSX that allows developers to write HTML in JavaScript.
  • Unlike earlier JavaScript frameworks that had ‘batteries included,’ both React and Vue are fairly barebones with functionality like routing and state management handled by separate frameworks.
  • Both React and Vue are focused solely on the UI layer, and leave functionality such as routing and state handling to companion frameworks.
  • In Vue there’s no need to call a state management function like , as the data parameter on the Vue object acts as the holder for application data.

React vs Vue.js. Are you in the market for a shiny new JavaScript UI framework? Find out the main similarities & differences between these two popular ones.
Continue reading “Vue vs React: Battle of the Javascript Frameworks”

Vue vs React: Battle of the Javascript Frameworks

Vue vs React: Battle of the Javacript Frameworks



#VueJS #ReactJS #JS #JavaScript

  • I’ve created two nearly identical sample applications, one in Vue and one in React, if you’d like to give either framework a shot in the context of the samples in this article.
  • The biggest difference is that React popularized a Virtual DOM (we’ll get into this later) and created a new syntax called JSX that allows developers to write HTML in JavaScript.
  • Unlike earlier JavaScript frameworks that had ‘batteries included,’ both React and Vue are fairly barebones with functionality like routing and state management handled by separate frameworks.
  • Both React and Vue are focused solely on the UI layer, and leave functionality such as routing and state handling to companion frameworks.
  • In Vue there’s no need to call a state management function like , as the data parameter on the Vue object acts as the holder for application data.

React vs Vue.js. Are you in the market for a shiny new JavaScript UI framework? Find out the main similarities & differences between these two popular ones.
Continue reading “Vue vs React: Battle of the Javascript Frameworks”

The one thing that no one properly explains about React — Why Virtual DOM

The one thing that no one properly explains about #ReactJS — Why Virtual DOM?

  • By relinquishing DOM manipulation for itself, it allows for different components or pieces of your code to request DOM modifications without having to interact among themselves, without having to go around sharing the fact that they’ve modified or want to modify the DOM.
  • The particular behaviour can be achieved without a virtual DOM. You can manually group all the DOM modifications in a DOM fragment yourself and then dump it into the DOM.
  • virtual-dom will then figure out how to make the DOM look like this efficiently without recreating all of the DOM nodes.
  • The style information along with the nodes in the DOM tree are used to create another tree, called the render tree
  • All nodes in the DOM tree have an “attach” method, which takes in the calculated style information, and returns a render object (a.k.a. renderer)

Read the full article, click here.


@ReactiveConf: “The one thing that no one properly explains about #ReactJS — Why Virtual DOM?”


The other day a friend had this React question for me: “Composition through components, one way data binding; I understand all that, but why Virtual DOM?”..


The one thing that no one properly explains about React — Why Virtual DOM