React turn Vue

From Babel AST perspective view, compared Vue turn React, React Vue turn relative to the relatively simple, such as keywords setState keyword. Because Vue with this.xxx to do assignment, and react with setState, React turn Vue setState just search keywords, and Vue turn React you need to search for this key assignment, operation is relatively cumbersome.

Life Cycle Comparison:

React turn Vue

props comparison:
React turn Vue

View more tools:

https://tools.w3cub.com/react-to-vue

Guess you like

Origin blog.51cto.com/xp114/2432153