Skip to content

Commit 854b2b6

Browse files
authored
Merge pull request #157 from hiimnhan/translate/cdn-links
Translate/cdn links
2 parents 19c5933 + cae1b50 commit 854b2b6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

content/docs/cdn-links.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,33 @@ prev: create-a-new-react-app.html
66
next: release-channels.html
77
---
88

9-
Both React and ReactDOM are available over a CDN.
9+
Cả React ReactDOM đều có thể dùng được qua một CDN
1010

1111
```html
1212
<script crossorigin src="https://unpkg.com/react@17/umd/react.development.js"></script>
1313
<script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"></script>
1414
```
1515

16-
The versions above are only meant for development, and are not suitable for production. Minified and optimized production versions of React are available at:
16+
Những phiên bản trên đều chỉ áp dụng cho việc phát triển, chúng không phù hợp cho sản phẩm thật. Những phiên bản giảm tải và được tối ưu cho sản phẩm là:
1717

1818
```html
1919
<script crossorigin src="https://unpkg.com/react@17/umd/react.production.min.js"></script>
2020
<script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"></script>
2121
```
2222

2323
To load a specific version of `react` and `react-dom`, replace `17` with the version number.
24+
Để chạy một phiên bản nhất định của `react``react-dom`, thay `17` bằng số phiên bản.
2425

25-
### Why the `crossorigin` Attribute? {#why-the-crossorigin-attribute}
26+
### Tại sao là thuộc tính `crossorigin`? {#why-the-crossorigin-attribute}
2627

27-
If you serve React from a CDN, we recommend to keep the [`crossorigin`](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) attribute set:
28+
Nếu bạn dùng React từ một CDN, chúng tôi khuyến khích giữ nguyên thuộc tính [`crossorigin`](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes):
2829

2930
```html
3031
<script crossorigin src="..."></script>
3132
```
3233

33-
We also recommend to verify that the CDN you are using sets the `Access-Control-Allow-Origin: *` HTTP header:
34+
Chúng tôi cũng khuyến khích kiểm tra CDN bạn đang sử dụng có đang thiết lập `Access-Control-Allow-Origin: *` cho HTTP header:
3435

3536
![Access-Control-Allow-Origin: *](../images/docs/cdn-cors-header.png)
3637

37-
This enables a better [error handling experience](/blog/2017/07/26/error-handling-in-react-16.html) in React 16 and later.
38+
Điều này sẽ tốt cho [error handling experience](/blog/2017/07/26/error-handling-in-react-16.html) trong React phiên bản 16 hoặc hơn.

0 commit comments

Comments
 (0)