Vue and the similarities and differences React

React Vue and is among the more popular of the three giants Second, Angular accidentally understanding, not in the repeat.

React developed by Facebook a js ui framework, the biggest change is the new syntax and VirtualDOM JSX

vue used is a short-answer html extension, basic grammar has not changed, jsx is based js xhtml, but also can re-write the HTML jsx,

React no instruction in the concept, vue of instruction compared to very much, but very practical: v-if, v-model, v-show, v-for, v-on ....

React want is to two-way data binding is to help setData () method, but only by means of Vue data () on it, relatively more simple React

Both similarities are what it?

One VirturlDOM virtual dom, both have a lot of the life cycle of the hook function, both to encourage the development of component-based application SPA, father and son are also necessary components to transfer data to pass through to the parent function with props, son, two also can build their own tools.

Guess you like

Origin www.cnblogs.com/jagelee/p/11545317.html