Skip to content

Commit b9edd18

Browse files
authored
Merge pull request #351 from leduc1901/leduc1901/react-developer-tools
Translation: React Developer Tools
2 parents ddd3c0a + 0025bff commit b9edd18

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
---
2-
title: React Developer Tools
2+
title: Công cụ phát triển React
33
---
44

55
<Intro>
66

7-
Use React Developer Tools to inspect React [components](/learn/your-first-component), edit [props](/learn/passing-props-to-a-component) and [state](/learn/state-a-components-memory), and identify performance problems.
7+
Sử dụng Công cụ Phát triển React để kiểm tra các [thành phần](/learn/your-first-component), chỉnh sửa [props](/learn/passing-props-to-a-component) [state](/learn/state-a-components-memory), và xác định các vấn đề hiệu suất.
88

99
</Intro>
1010

1111
<YouWillLearn>
1212

13-
* How to install React Developer Tools
13+
* Cách cài đặt công cụ phát triển React
1414

1515
</YouWillLearn>
1616

17-
## Browser extension {/*browser-extension*/}
17+
## Tiện ích mở rộng trên trình duyệt {/*tiện-ích-mở-rộng-trên-trình-duyệt*/}
1818

19-
The easiest way to debug websites built with React is to install the React Developer Tools browser extension. It is available for several popular browsers:
19+
Cách dễ nhất để sửa lỗi các trang web được xây dựng bằng React là cài đặt tiện ích mở rộng trình duyệt React Developer Tools. Nó có sẵn cho một số trình duyệt phổ biến:
2020

21-
* [Install for **Chrome**](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en)
22-
* [Install for **Firefox**](https://addons.mozilla.org/en-US/firefox/addon/react-devtools/)
23-
* [Install for **Edge**](https://microsoftedge.microsoft.com/addons/detail/react-developer-tools/gpphkfbcpidddadnkolkpfckpihlkkil)
21+
* [Cài đặt cho **Chrome**](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en)
22+
* [Cài đặt cho **Firefox**](https://addons.mozilla.org/en-US/firefox/addon/react-devtools/)
23+
* [Cài đặt cho **Edge**](https://microsoftedge.microsoft.com/addons/detail/react-developer-tools/gpphkfbcpidddadnkolkpfckpihlkkil)
2424

25-
Now, if you visit a website **built with React,** you will see the _Components_ and _Profiler_ panels.
25+
Bây giờ nếu bạn truy cập website **được xây dựng bằng React,** bạn sẽ thấy các bảng điều khiển _Components_ _Profiler_.
2626

27-
![React Developer Tools extension](/images/docs/react-devtools-extension.png)
27+
![Công cụ phát triển React trên tiện ích trình duyệt](/images/docs/react-devtools-extension.png)
2828

29-
### Safari and other browsers {/*safari-and-other-browsers*/}
30-
For other browsers (for example, Safari), install the [`react-devtools`](https://www.npmjs.com/package/react-devtools) npm package:
29+
### Safari và các trình duyệt khác {/*safari-và-các-trình-duyệt-khác*/}
30+
Với các trình duyệt khác (ví dụ như, Safari), hãy cài đặt [`react-devtools`](https://www.npmjs.com/package/react-devtools) npm package:
3131
```bash
3232
# Yarn
3333
yarn global add react-devtools
@@ -36,26 +36,26 @@ yarn global add react-devtools
3636
npm install -g react-devtools
3737
```
3838

39-
Next open the developer tools from the terminal:
39+
Sau đó hãy mở công cụ phát triển React từ Terminal:
4040
```bash
4141
react-devtools
4242
```
4343

44-
Then connect your website by adding the following `<script>` tag to the beginning of your website's `<head>`:
44+
Rồi kết nối với trang web của bạn bằng cách thêm thẻ `<script>` sau đây lên trên đầu thẻ `<head>` ủa trang web:
4545
```html {3}
4646
<html>
4747
<head>
4848
<script src="http://localhost:8097"></script>
4949
```
5050

51-
Reload your website in the browser now to view it in developer tools.
51+
Hãy tải lại trang web của bạn ngay để có thể nhìn thấy nó với công cụ phát triển.
5252

53-
![React Developer Tools standalone](/images/docs/react-devtools-standalone.png)
53+
![Công cụ phát triển React độc lập](/images/docs/react-devtools-standalone.png)
5454

5555
## Mobile (React Native) {/*mobile-react-native*/}
56-
React Developer Tools can be used to inspect apps built with [React Native](https://reactnative.dev/) as well.
56+
Công cụ phát triển React có thể được sử dụng để kiểm tra các ứng dụng được xây dựng bằng [React Native](https://reactnative.dev/) as well.
5757

58-
The easiest way to use React Developer Tools is to install it globally:
58+
Cách đơn giản nhất để sử dụng công cụ phát triển React là cài đặt nó toàn cục trên hệ thống của bạn:
5959
```bash
6060
# Yarn
6161
yarn global add react-devtools
@@ -64,13 +64,13 @@ yarn global add react-devtools
6464
npm install -g react-devtools
6565
```
6666

67-
Next open the developer tools from the terminal.
67+
Sau đó mở công cụ phát triển từ terminal.
6868
```bash
6969
react-devtools
7070
```
7171

72-
It should connect to any local React Native app that's running.
72+
Nó sẽ kết nối với bất kỳ ứng dụng React Native nào đang chạy trên cùng một máy tính.
7373

74-
> Try reloading the app if developer tools doesn't connect after a few seconds.
74+
> Hãy thử tải lại ứng dụng nếu công cụ phát triển không kết nối sau vài giây.
7575
76-
[Learn more about debugging React Native.](https://reactnative.dev/docs/debugging)
76+
[Tìm hiểu thêm về debugging với React Native.](https://reactnative.dev/docs/debugging)

0 commit comments

Comments
 (0)