As we’ve mentioned before here, the WordPress core team is debating which JavaScript framework to add to the existing set of frameworks. React and Vue.js appear to be front-runners, with many members of the community discussing the pros and cons of these two frameworks. So which framework rocks and which framework is the new prototype.js.? Let’s find out.
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 Contenders
Unless you’ve been hiding under a rock for the past couple years, you’ve likely heard of the JavaScript UI framework developed at Facebook called React. It powers most of the Facebook website as well as Instagram. React was a bit of change in the JavaScript world when it came out as it’s quite different from other at-the-time frameworks like jQuery, Backbone.js and Angular 1. 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. WAT?
Vue.js is a similar JavaScript framework
Source: https://managewp.org/articles/15351/vue-vs-react-battle-of-the-javascript-frameworks
source https://williechiu40.wordpress.com/2017/06/21/vue-vs-react-battle-of-the-javascript-frameworks/
No comments:
Post a Comment