diff --git a/content/docs/add-react-to-a-website.md b/content/docs/add-react-to-a-website.md
index 94889d71b..44542180b 100644
--- a/content/docs/add-react-to-a-website.md
+++ b/content/docs/add-react-to-a-website.md
@@ -1,6 +1,6 @@
---
id: add-react-to-a-website
-title: Add React to a Website
+title: Thêm React vào một Website
permalink: docs/add-react-to-a-website.html
redirect_from:
- "docs/add-react-to-an-existing-app.html"
diff --git a/content/docs/nav.yml b/content/docs/nav.yml
index 1f08c3ece..a6f563deb 100644
--- a/content/docs/nav.yml
+++ b/content/docs/nav.yml
@@ -7,16 +7,16 @@
- id: create-a-new-react-app
title: Tạo một App React mới
- id: cdn-links
- title: CDN Links
+ title: Các liên kết CDN
- id: release-channels
- title: Release Channels
+ title: Các kênh phát hành
- title: Khái niệm chính
isOrdered: true
items:
- id: hello-world
title: Hello World
- id: introducing-jsx
- title: Introducing JSX
+ title: Giới thiệu JSX
- id: rendering-elements
title: Rendering Elements
- id: components-and-props
@@ -24,9 +24,9 @@
- id: state-and-lifecycle
title: State and Lifecycle
- id: handling-events
- title: Handling Events
+ title: Xử lý Events
- id: conditional-rendering
- title: Conditional Rendering
+ title: Rendering có điều kiện
- id: lists-and-keys
title: Lists and Keys
- id: forms
@@ -36,11 +36,11 @@
- id: composition-vs-inheritance
title: Composition vs Inheritance
- id: thinking-in-react
- title: Thinking In React
+ title: Tư duy trong React
- title: Hướng dẫn nâng cao
items:
- id: accessibility
- title: Accessibility
+ title: Khả năng tiếp cận
- id: code-splitting
title: Code-Splitting
- id: context
@@ -48,25 +48,25 @@
- id: error-boundaries
title: Error Boundaries
- id: forwarding-refs
- title: Forwarding Refs
+ title: Chuyển tiếp Refs
- id: fragments
title: Fragments
- id: higher-order-components
title: Higher-Order Components
- id: integrating-with-other-libraries
- title: Integrating with Other Libraries
+ title: Tích hợp với các thư viện khác
- id: jsx-in-depth
title: JSX In Depth
- id: optimizing-performance
- title: Optimizing Performance
+ title: Tối ưu hiệu năng
- id: portals
title: Portals
- id: profiler
- title: Profiler
+ title: Phân tích (Profiler)
- id: react-without-es6
- title: React Without ES6
+ title: React nhưng không sử dụng ES6
- id: react-without-jsx
- title: React Without JSX
+ title: React nhưng không sử dụng JSX
- id: reconciliation
title: Reconciliation
- id: refs-and-the-dom
@@ -78,7 +78,7 @@
- id: strict-mode
title: Strict Mode
- id: typechecking-with-proptypes
- title: Typechecking With PropTypes
+ title: Kiểm tra kiểu với PropTypes
- id: uncontrolled-components
title: Uncontrolled Components
- id: web-components
@@ -103,9 +103,9 @@
- id: test-renderer
title: Test Renderer
- id: javascript-environment-requirements
- title: JS Environment Requirements
+ title: Môi trường JS yêu cầu
- id: glossary
- title: Glossary
+ title: Bảng chú giải
- title: Hooks
isOrdered: true
items:
@@ -124,26 +124,26 @@
- id: hooks-reference
title: Tham chiếu Hooks API
- id: hooks-faq
- title: Hooks FAQ
-- title: Testing
+ title: Hooks và các câu hỏi thường gặp
+- title: Kiểm thử
items:
- id: testing
- title: Testing Overview
+ title: Tổng quan kiểm thử
- id: testing-recipes
- title: Testing Recipes
+ title: Phương thức kiểu thử
- id: testing-environments
- title: Testing Environments
-- title: Contributing
+ title: Môi trường kiểm thử
+- title: Đóng góp
items:
- id: how-to-contribute
- title: How to Contribute
+ title: Làm sao để đóng góp
- id: codebase-overview
- title: Codebase Overview
+ title: Tổng quan về Codebase
- id: implementation-notes
- title: Implementation Notes
+ title: Ghi chú Triển khai
- id: design-principles
- title: Design Principles
-- title: FAQ
+ title: Nguyên tắc thiết kế
+- title: Cầu hỏi thường gặp
items:
- id: faq-ajax
title: AJAX và APIs
@@ -156,8 +156,8 @@
- id: faq-styling
title: Styling và CSS
- id: faq-structure
- title: File Structure
+ title: Cấu trúc File
- id: faq-versioning
- title: Versioning Policy
+ title: Quy tắc đặt tên phiên bản
- id: faq-internals
title: Virtual DOM and Internals
diff --git a/content/docs/reference-profiler.md b/content/docs/reference-profiler.md
index e361f7fa4..b707b3554 100644
--- a/content/docs/reference-profiler.md
+++ b/content/docs/reference-profiler.md
@@ -1,27 +1,27 @@
---
id: profiler
-title: Profiler API
+title: Profiler API (Công cụ Phân tích)
layout: docs
category: Reference
permalink: docs/profiler.html
---
-The `Profiler` measures how often a React application renders and what the "cost" of rendering is.
-Its purpose is to help identify parts of an application that are slow and may benefit from [optimizations such as memoization](/docs/hooks-faq.html#how-to-memoize-calculations).
+Công cụ `Profiler` (tạm gọi là `Công cụ Phân tích`) đánh giá xem ứng dụng React thực hiện việc render và "chi phí" để thực hiện nó.
+Mục đích của nó là để xác định xem phần nào của ứng dụng chạy chậm và có thể được hưởng lợi từ việc [tối ưu hóa như là ghi nhớ (memoization)](/docs/hooks-faq.html#how-to-memoize-calculations).
-> Note:
+> Ghi chú:
>
-> Profiling adds some additional overhead, so **it is disabled in [the production build](/docs/optimizing-performance.html#use-the-production-build)**.
+> Việc Phân tích sẽ tốn thêm tài nguyên, vì vậy **nó sẽ bị vô hiệu hóa trên [môi trường Production](/docs/optimizing-performance.html#use-the-production-build)**.
>
-> To opt into production profiling, React provides a special production build with profiling enabled.
-> Read more about how to use this build at [fb.me/react-profiling](https://fb.me/react-profiling)
+> Nếu bạn muốn sử dụng nó trên môi trường Production, React có thể cung cấp một bản build đặc biệt đã bật chức năng này cho môi trường Production.
+> Đọc thêm về cách sử dụng bản build đáy tại [fb.me/react-profiling](https://fb.me/react-profiling)
-## Usage {#usage}
+## Sử dụng {#usage}
-A `Profiler` can be added anywhere in a React tree to measure the cost of rendering that part of the tree.
-It requires two props: an `id` (string) and an `onRender` callback (function) which React calls any time a component within the tree "commits" an update.
+`Công cụ Phân tích (Profiler)` có thể thêm vào bất kì đâu trong React tree để tính toán việc render ở nơi mà `Profiler` component được thêm vào.
+Nó cần 2 props: một là `id` (string) và một là `onRender` (hàm callback) để React có thể gọi bất kỳ lúc nào khi component ở bên trong cây (tree) có sự thay đổi.
-For example, to profile a `Navigation` component and its descendants:
+Ví dụ, để phân tích component `Navigation` và các component con (descendants) của nó:
```js{3}
render(
@@ -34,7 +34,7 @@ render(
);
```
-Multiple `Profiler` components can be used to measure different parts of an application:
+Có thể sử dụng nhiều `Profiler` component để đánh giá nhiều nơi khác nhau trong ứng dụng:
```js{3,6}
render(