FrontendDeveloper.in

Vue.js question detail

What are the key differences between Vue 2 and Vue 3?

FeatureVue 2Vue 3
API StyleOptions APIComposition API + Options API
Reactivity SystemObject.defineProperty()Proxy-based (faster & more reliable)
PerformanceModerateImproved (~2x faster in some cases)
Tree-shakingLimitedFully tree-shakable
TypeScript SupportPartialBuilt-in and first-class support
Fragment SupportNot supportedSupported
Teleport/PortalsPlugin-basedNative support
SuspenseNot availableNative support for async components
Back to all Vue.js questions
Get LinkedIn Premium at Rs 399