01-Vue3's new features

Vue3 new features

Insert picture description here

  1. Progressive development, backward compatibility, vue3 supports most of the features of vue2, and it can even be said that there is no problem with the syntax of vue2 to develop vue3
  2. Performance improvement, faster and lighter experience. The data given by the official website is: the package size is reduced by 41%, the initial rendering is 55% faster, the update is 133% faster, and the memory usage is reduced by 54%
  3. Launch Composition API, the problem encountered in Vue2 is that the code of complex components becomes very troublesome and even unmaintainable. To put it bluntly, the packaging is not good and the reuse is not smooth. As soon as the Composition API was launched, this problem was solved immediately, and this part of the content will also be highlighted in this set of courses. It is a collection of a series of APIs.
  4. New APIs were added, Teleport (teleport component), Suspense (to solve the problem of asynchronous loading components), and global API modification and optimization
  5. Better TypeScriptsupport. When I was developing Vue2, it was not applicable TypeScriptbecause it was difficult to integrate and there were too many pain points. But Vue3 solves this problem, and the source code of Vue3 is TypeScriptdeveloped using it. So using TS on the new version is more smooth and unimpeded.

Guess you like

Origin blog.csdn.net/pz1021/article/details/113929293
Recommended