What New Features for Developers are Coming to Vue.js 3?

Anthony Gore
Oct 9, 2018 · 2 min read

Vue creator Evan You has done a complete write up on the planned features of Vue 3 which you can read here.

But be warned, it’s a bit technical!

In simple terms, what are the new features of Vue 3 that you, as a developer, can use?

  1. Class-based components. Rather than declaring components with an object e.g. Vue.component("my-component", { ... }); you can (optionally) use an ES2015 class.
  2. Fragments. These are components with multiple root nodes e.g. <template><root1/><root2/></template>
  3. Portals. These are subtrees of markup that can be rendered outside of Vue’s mount element.
  4. Functional components as plain functions. Not sure of the syntax yet, but maybe something like function myComp(h) => h("div", "Hello, World");
  5. Improved reactivity. By utilizing ES2015, Vue 3 will eliminate current reactivity limitations. By utilizing new ES2015 features, Vue 3 will eliminate the current reactivity limitations i.e. will be able to detect any kind of object or array mutation and new data types like Maps and Sets can be reactive.
  6. TypeScript support. For example, you’ll be able to use TSX for render functions (JSX in TypeScript files).

There are many other new features planned for Vue 3, but they mostly concern performance, size, and other internal improvements that won’t affect the public API.

What features are you most looking forward to?

Originally published at www.quora.com.

Vue.js Developers

Helping web professionals up their skill and knowledge of Vue.js

Anthony Gore

Written by

Here to teach you Vue.js! Vue Community Partner, creator of @Vue.js Developers. Take my free Vue intro course: https://bit.ly/2Eb4uPT

Vue.js Developers

Helping web professionals up their skill and knowledge of Vue.js

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade