Exploring Vue 3: New Features, Teleport, and Vue‑Lit Web Components

The article reviews Vue 3's official release, explains the Teleport feature for rendering content outside component trees, introduces the lightweight vue‑lit library for building Web Components with Vue's reactivity, and highlights related graphics experiments, legacy version comparisons, and Taro integration for mini‑program development.

Aotu Lab
Aotu Lab
Aotu Lab
Exploring Vue 3: New Features, Teleport, and Vue‑Lit Web Components

Vue 3 Release Overview

On September 18, 2020 Vue 3.0 (code‑named “One Piece”) was officially launched after two years of development. The core team streamed a live session titled “Live Free Online Announcement” to showcase the new version, discuss its roadmap, and answer community questions.

Vue Teleport

Teleport is a new Vue 3 feature analogous to React Portal. It allows developers to render a template node into a specified container elsewhere in the DOM, which is especially useful for global UI elements such as modals and notifications.

Vue Teleport illustration
Vue Teleport illustration

Vue‑Lit Web Component Library

The author highlights a GitHub project called vue-lit, which combines Vue's reactivity (@vue/reactivity) with lit-html to produce Web Components using Vue’s Composition API. This approach enables native component development without bundlers or a full framework, offering a compact, source‑readable solution.

vue-lit repository illustration
vue-lit repository illustration

Graphics Programming Highlights

The article also showcases visual experiments, including a collection of Twitter "like" animations and a set of WebGL‑based triangular image transition effects. Five transition styles are provided, covering region slicing and geometric flips.

WebGL triangle transitions
WebGL triangle transitions

Legacy Vue Comparison

Even after Vue 3's release, earlier versions (Vue 1.x and 2.x) remain valuable. Comparing their differences helps developers understand the design decisions behind Vue 3 and the problems each version aimed to solve.

Vue 1.x vs Vue 2.x comparison
Vue 1.x vs Vue 2.x comparison

Taro + Vue 3 Mini‑Program Solution

Taro 3, an open‑source cross‑platform framework, now supports Vue 3. Developers can leverage Vue 3's composition API within Taro to build mini‑programs, combining the benefits of a modern frontend framework with Taro's multi‑target capabilities.

Taro 3 Vue 3 integration
Taro 3 Vue 3 integration
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

frontendVue.jsWebGLweb componentsTaroVue 3Teleport
Aotu Lab
Written by

Aotu Lab

Aotu Lab, founded in October 2015, is a front-end engineering team serving multi-platform products. The articles in this public account are intended to share and discuss technology, reflecting only the personal views of Aotu Lab members and not the official stance of JD.com Technology.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.