Skip to content

Commit 3f731d1

Browse files
committed
modify
1 parent 03989ec commit 3f731d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ permalink: docs/javascript-environment-requirements.html
88

99
React 16 依赖集合类型 [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) 。如果你要支持无法原生提供这些能力(例如 IE < 11)或实现不规范(例如 IE 11)的旧浏览器与设备,考虑在你的应用库中包含一个全局的 polyfill ,例如 [core-js](https://github.com/zloirock/core-js)[babel-polyfill](https://babeljs.io/docs/usage/polyfill/)
1010

11-
一个使用 core-js 支持老版浏览器的 React 16 的 polyfill 环境大致如下:
11+
React 16 使用 core-js 支持老版本浏览器,其 polyfill 环境可能如下:
12+
1213
```js
1314
import 'core-js/es6/map';
1415
import 'core-js/es6/set';
@@ -23,7 +24,7 @@ ReactDOM.render(
2324
```
2425

2526
React 也依赖于 `requestAnimationFrame`(甚至包括测试环境)。
26-
你可以使用 [raf](https://www.npmjs.com/package/raf) 包增添 `requestAnimationFrame`
27+
你可以使用 [raf](https://www.npmjs.com/package/raf) package 增添 `requestAnimationFrame`
2728

2829
```js
2930
import 'raf/polyfill';

0 commit comments

Comments
 (0)