Tag

script-setup

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 28, 2024 · Frontend Development

Our Team’s Journey with Vue 3 Composition API and Insights from ECS Architecture

The article recounts a frontend team's evolution from Vue 2 to Vue 3, detailing their experiments with the script‑setup syntax, challenges of maintainability, and how concepts from game‑engine ECS architecture inspired new composition‑API best practices for scalable, readable code.

Composition APIECSTypeScript
0 likes · 14 min read
Our Team’s Journey with Vue 3 Composition API and Insights from ECS Architecture
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 APITypeScriptVolar
0 likes · 17 min read
Practical Guide to Vue 3.2 Setup Sugar, <script setup> with TypeScript, and New Vue APIs