Vue 3 组合式 API 实战笔记
## 组合式 API 的取舍 `script setup` 让组件更聚焦。 ```ts import { ref, computed } from 'vue' const count = ref(0) const double = computed(() => count.value * 2)
标签下的全部文章
共 4 篇
## 组合式 API 的取舍 `script setup` 让组件更聚焦。 ```ts import { ref, computed } from 'vue' const count = ref(0) const double = computed(() => count.value * 2)
## 为什么选 Hono Hono 极轻、TS 优先、路由清晰。 ```ts import { Hono } from 'hono' const app = new Hono() app.get('/hello', (c) => c.json({ hi: 'mblog' })) ``` ##
## SSG 还是 SSR 博客这种内容型站点,Astro 的 islands 架构很合适。 - 服务端渲染 HTML - Vue 岛负责交互 - Lenis 平滑滚动 ## 双主题换肤 CSS 变量 + `data-theme`,简单可靠。
## 图片 - 现代格式优先 - 按需加载 ## 字体 - `font-display: swap` - 系统字体回退 ## 代码 > 少即是多。