Foundations & Mental Model
islands architecture, zero-JS by default, .astro component และ static vs on-demand rendering เริ่ม →
Foundations & Mental Model
islands architecture, zero-JS by default, .astro component และ static vs on-demand rendering เริ่ม →
Components & Templating
Astro syntax, scoped styles & scripts, slots & composition และ Markdown/MDX ประกอบ →
Islands & Client Interactivity
client directives, UI framework integrations, sharing state และ server islands hydrate →
Content & Data
content collections & Content Layer API, Zod schema, data fetching และ dynamic routes ออกแบบ →
Server-Side Astro
SSR & adapters, API endpoints, Actions และ middleware & sessions serve →
Rendering, Performance & UX
view transitions ด้วย ClientRouter, images & assets, zero-JS default และ caching optimize →
Tooling, Integrations & Production
config & integrations, TypeScript & content types, testing และ deployment ship →
เข้าใจ model ก่อน แล้วค่อยดู code
ทุกหัวข้อเริ่มจาก model — islands, server-first render, content pipeline — พอเข้าใจแล้วตัวเลือกของ Astro จะเลิกดูสุ่ม ๆ และกลายเป็นเรื่องที่สมเหตุสมผล
Astro 6 ที่ verify แล้ว
เขียนบน Astro 6 และตรวจสอบกับ official docs — Content Layer API (src/content.config.ts พร้อม loader), <ClientRouter />, server islands, Actions และ sessions ถูกสอนตามที่มีอยู่จริงวันนี้
เน้นการออกแบบ ไม่ใช่แค่ syntax
ไม่ใช่แค่ “นี่คือ client directive” แต่เป็น “ทำไมถึงส่ง island แทนการ hydrate ทั้งหน้า และ directive ไหนที่เหมาะ” คุณจะ reason ได้ว่าอะไรถูกส่งไป browser อย่างมั่นใจ
ไดอะแกรมที่อธิบายได้
islands hydration, render pipeline, content collection flow และ server islands เป็นไดอะแกรม Mermaid ที่รองรับธีม สองภาษา (English / ไทย) พร้อมบันทึกความคืบหน้า quiz