May 31, 2021 Article blog
1. Further advance the concept of a "progressive framework"
3. A new API to solve scale problems
The article comes from the public number: Front Forest
Vue's official team finally released
Vue3.0
version, codenamed
One Piece
around 11:30 p.m. on September 18, 2020.
In fact,
Vue3.0
version of the news, I was last night brushing the circle of friends to see (it's almost 1 a.m.), and then I immediately got up, turned on the computer, looked at
github
the official release document over again.
In fact, I feel that this release update, most importantly the
Composition API
and support for
TypeScript
was mentioned as early as April 21 in The Latest Developments on
Vue.js 3.0 Beta
on Site B.
This
Vue3.0
release update provides improved performance, smaller bundle sizes, better
TypeScript
integration, and new
API
for handling large-scale use cases, providing a solid foundation for future iterations of the framework.
Here I'll refer to the official
releases
for a general update (see
releases docs
in more detail):
Vue
began with the principle of being a framework that anyone can learn quickly and approachablely. (
To this day, as a senior
Vue
user, I think he's done that.)
Vue3.0
of course, further increases this flexibility.
Vue 3.0
kernel can still be used with a simple
<script>
label, but its internal structure has been completely rewritten as a set of decoupled modules.
The new architecture provides better maintainability and allows end users to use
tree-shaking
to reduce runtime volume by half.
Vue 3.0
introduces the
Composition API
new set of
API
designed to address the difficulties
Vue
uses in large applications.
Built on responsive
API
Composition API
enable react
React Hook
logical composition and reuse, more flexible code organization patterns, and more reliable type inference than
2.x
object-based
API
approach.
Compared to
Vue 2
Vue 3
reduces volume by up to
41%
by
tree-shaking
in terms of
bundle
package size, increases initial rendering speed by
55%
update speed by
133%
and significant performance improvements in memory usage by up to
54%
TypeScript
Vue 3.0
code base is written in
TypeScript
and has automatic build, test, and build type declarations.
At the same time,
Vue 3
is fully supported by
TSX
Immediately thereafter,
Vue
official team plans to do the following:
IE11
support
Router
and
Vuex
integration in the new
devtools
Vetur
If you can't wait to learn
Vue3
here's the link:
Vue officially releases documents
Above is
W3Cschool编程狮
about
the Vue 3.0 release, let's see what updates
are relevant to the introduction, I hope to help you.