feat(i18n): translate src/content/learn/state-a-components-memory.md from English to Vietnamese by KotonoSora · Pull Request #472 · reactjs/vi.react.dev

🇻🇳 Vietnamese Translation: State: a component’s memory

Hi! I’m contributing as a volunteer translator for vi.react.dev, and this PR adds the Vietnamese translation for the “State: a component’s memory” lesson.

What’s included

  • Vietnamese translation of state-a-components-memory.md
  • Preserved all code examples and markdown formatting
  • Kept terminology consistent with existing translations

Changes

  • ✅ Fully translated the guide covering React state basics and memory model
  • ✅ Maintained code blocks, links, comments and DeepDive/Solution sections
  • ✅ Verified all internal links and formatting render correctly

Looking forward to contributing more translations to the project! 🚀


Tóm tắt những gì đã được dịch:

Tiêu đề và phần Intro:
“State: a component’s memory” → “State: Bộ Nhớ Của Component”

Các phần chính:

  • “When a regular variable isn’t enough” → “Khi một biến thông thường không đủ”
  • “Meet your first Hook” → “Gặp gỡ Hook đầu tiên của bạn”
  • “Anatomy of useState” → “Giải phẫu của useState”
  • “Giving a component multiple state variables” → “Cung cấp nhiều biến state cho một component”
  • “How does React know which state to return?” → “React làm sao biết state nào để trả về?”
  • “State is isolated and private” → “State được cô lập và riêng tư”

Phần Challenges:

  • “Complete the gallery” → “Hoàn thành gallery”
  • “Fix stuck form inputs” → “Sửa lỗi form input bị kẹt”
  • “Fix a crash” → “Sửa lỗi crash”
  • “Remove unnecessary state” → “Loại bỏ state không cần thiết”