Skip to content

feat(i18n): src/content/learn/reusing-logic-with-custom-hooks.md from English to Vietnamese #492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KotonoSora
Copy link
Contributor

🇻🇳 Vietnamese Translation: Reusing Logic with Custom Hooks

Hi! I'm contributing as a volunteer translator for vi.react.dev, and this PR adds the Vietnamese translation for the "Reusing Logic with Custom Hooks" lesson.

What's included

  • Vietnamese translation of reusing-logic-with-custom-hooks.md
  • Preserved all code examples and markdown formatting
  • Kept terminology consistent with existing translations

Changes

  • ✅ Fully translated the guide covering custom Hook creation, stateful logic sharing, reactive value passing, event handler management, and Hook composition patterns
  • ✅ Maintained code blocks, links, Sandpack components and Challenge/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:
"Reusing Logic with Custom Hooks" → "Tái Sử Dụng Logic với Custom Hooks"

Các phần chính:

  • "Custom hooks: sharing logic between components" → "Custom Hook: Chia sẻ logic giữa các component"
  • "Extracting your own custom Hook from a component" → "Trích xuất custom Hook của riêng bạn từ một component"
  • "Hook names always start with use" → "Tên Hook luôn bắt đầu bằng use"
  • "Custom hooks let you share stateful logic, not state itself" → "Custom Hook cho phép bạn chia sẻ logic stateful, không phải bản thân state"
  • "Passing reactive values between Hooks" → "Truyền giá trị reactive giữa các Hook"
  • "Passing event handlers to custom Hooks" → "Truyền event handler cho custom Hook"
  • "When to use custom Hooks" → "Khi nào nên sử dụng custom Hook"
  • "Custom Hooks help you migrate to better patterns" → "Custom Hook giúp bạn di chuyển sang các pattern tốt hơn"
  • "There is more than one way to do it" → "Có nhiều cách để thực hiện điều đó"

Phần Challenges:

  • "Extract a useCounter Hook" → "Trích xuất Hook useCounter"
  • "Make the counter delay configurable" → "Làm cho delay của counter có thể cấu hình"
  • "Extract useInterval out of useCounter" → "Trích xuất useInterval ra khỏi useCounter"
  • "Fix a resetting interval" → "Sửa lỗi interval bị reset"
  • "Implement a staggering movement" → "Triển khai staggering movement"

Copy link

vercel bot commented Jun 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
vi-legacy-reactjs-org ⬜️ Ignored (Inspect) Visit Preview Jun 21, 2025 1:23am

Copy link

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant