Skip to content

Commit 3ab3a69

Browse files
authored
Translate reference-javascript-environment-requirements.md
1 parent 2d5710e commit 3ab3a69

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/docs/reference-javascript-environment-requirements.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ category: Reference
66
permalink: docs/javascript-environment-requirements.html
77
---
88

9-
React 16 depends on the collection types [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) and [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set). If you support older browsers and devices which may not yet provide these natively (e.g. IE < 11) or which have non-compliant implementations (e.g. IE 11), consider including a global polyfill in your bundled application, such as [core-js](https://github.com/zloirock/core-js).
9+
React 16 phụ thuộc vào một tập types [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set). Nếu bạn cần hỗ trợ những browsers hay thiết bị cũ mà chúng chưa được cung cấp sẵn (như IE < 11) hoặc chúng chưa được tuân thủ cách triển khai (e.g. IE 11), đừng quên thêm global polyfill vào ứng dụng của bạn, như [core-js](https://github.com/zloirock/core-js).
1010

11-
A polyfilled environment for React 16 using core-js to support older browsers might look like:
11+
Một môi trường đã polyfilled cho React 16 sử core-js để hỗ trợ các browsers cũ có thể trông giống thế này:
1212

1313
```js
1414
import 'core-js/es/map';
@@ -23,8 +23,8 @@ ReactDOM.render(
2323
);
2424
```
2525

26-
React also depends on `requestAnimationFrame` (even in test environments).
27-
You can use the [raf](https://www.npmjs.com/package/raf) package to shim `requestAnimationFrame`:
26+
React cũng phụ thuộc vào `requestAnimationFrame` (ngay cả trên test environments).
27+
Bạn có thể sử dụng [raf](https://www.npmjs.com/package/raf) package để chèn vào `requestAnimationFrame`:
2828

2929
```js
3030
import 'raf/polyfill';

0 commit comments

Comments
 (0)