Tagged articles
5 articles
Page 1 of 1
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 14, 2024 · Frontend Development

How to Transform Your Vue2 Codebase to Vue3 with Script Setup

This article walks through the practical steps for migrating a Vue2 project to Vue3, covering script‑setup syntax, composition‑API patterns, removal of mixins and global variables, file‑naming conventions, and reusable composable functions to achieve a cleaner, more maintainable codebase.

Composition APIScript SetupVue3
0 likes · 11 min read
How to Transform Your Vue2 Codebase to Vue3 with Script Setup
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 9, 2022 · Frontend Development

10 Real‑World Vue 3 Migration Scenarios Every Developer Should Master

This article walks through ten common Vue 3 migration scenarios—parent‑child data flow, two‑way binding, router navigation, context access, slots, component caching, logic reuse, lifecycle hooks, global APIs, and TypeScript integration—providing clear explanations and complete code examples for each case.

Composition APIScript SetupTypeScript
0 likes · 16 min read
10 Real‑World Vue 3 Migration Scenarios Every Developer Should Master
Sohu Tech Products
Sohu Tech Products
Sep 8, 2021 · Frontend Development

Practical Guide to Vue 3.2 Setup Sugar, <script setup> with TypeScript, and New Vue APIs

This article walks through preparing a Vue 3 + TypeScript project, explains the concept of setup sugar and its benefits, demonstrates the new compiler‑macro APIs such as defineProps, defineEmits and defineExpose, introduces useful hook APIs, covers Vue 3.2 additions like v‑memo and style‑variable binding, and provides tips for i18n, debugging and common pitfalls.

Composition APIScript SetupVolar
0 likes · 17 min read
Practical Guide to Vue 3.2 Setup Sugar, <script setup> with TypeScript, and New Vue APIs
Aotu Lab
Aotu Lab
Oct 10, 2020 · Frontend Development

How to Leverage Vue3’s New Features in Taro for Multi‑Platform Development

This guide walks through using Vue3’s Composition API, Teleport, Fragments, script‑setup, and style‑vars within Taro, covering installation, project setup, code examples for each feature, build commands, and compatibility notes for both H5 and mini‑program targets.

Composition APIFragmentsScript Setup
0 likes · 13 min read
How to Leverage Vue3’s New Features in Taro for Multi‑Platform Development