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

🇻🇳 Vietnamese Translation: Managing State

Hi! I'm contributing as a volunteer translator for vi.react.dev, and this PR adds the Vietnamese translation for the "Managing State" chapter.

What's included

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

Changes

  • ✅ Fully translated the comprehensive guide covering state management concepts, structure, and advanced patterns
  • ✅ Maintained code blocks, links, Sandpack components and all interactive examples
  • ✅ Verified all internal links and formatting render correctly
  • ✅ Improved Vietnamese phrasing for better readability and natural flow

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:
"Managing State" → "Quản Lý State"

Các phần chính:

  • "Reacting to Input with State" → "Phản hồi đầu vào thông qua state"
  • "Choosing the State Structure" → "Chọn cấu trúc state"
  • "Sharing State Between Components" → "Chia sẻ state giữa các component"
  • "Preserving and Resetting State" → "Bảo tồn và reset state"
  • "Extracting State Logic into a Reducer" → "Trích xuất logic state vào reducer"
  • "Passing Data Deeply with Context" → "Truyền data sâu với context"
  • "Scaling Up with Reducer and Context" → "Mở rộng với reducer và context"

Nội dung chính đã dịch:

  • Hướng dẫn tổ chức state và luồng data trong ứng dụng React
  • Cách cấu trúc state để tránh bug và dễ bảo trì
  • Kỹ thuật "nâng state lên" để chia sẻ giữa các component
  • Cách kiểm soát việc bảo tồn và reset state
  • Sử dụng reducer để quản lý logic state phức tạp
  • Truyền data qua nhiều cấp component với Context API
  • Kết hợp reducer và context cho ứng dụng lớn