React (JSX) react(vue)
** Template system **: just plain HTML, easy to refactor with VUE for older projects, no need to refactor completely ** JSX **: HTML can be written in javascriptCopy the code
Second, Virtual DOM rendering is different
React has no relationship and renders all components. Vue has no relationship and renders all components. React provides a shouldComponentUpdate** lifecycle method to implement this optimizationCopy the code
State management vs object properties
React is state management. The state object in react is immutable, meaning it cannot be changed directly. In React you need to use the setState() method to update the state. Back to use redux for state management in vUE object properties, directly do listening, directly use. Vuex is used for state managementCopy the code