Skip to content

Commit 661e75b

Browse files
authored
JS environment-requirements (#68)
JS environment-requirements
2 parents 2a3ece0 + e8d4a00 commit 661e75b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

content/docs/nav.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
- id: test-renderer
102102
title: Test Renderer
103103
- id: javascript-environment-requirements
104-
title: JS Environment Requirements
104+
title: Требования к среде JS
105105
- id: glossary
106106
title: Glossary
107107
- title: Хуки (Новое)

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
id: javascript-environment-requirements
3-
title: JavaScript Environment Requirements
3+
title: Требования к среде JavaScript
44
layout: docs
55
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) or [babel-polyfill](https://babeljs.io/docs/usage/polyfill/).
9+
React 16 полагается на типы коллекций [Map](https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Map) и [Set](https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Set). Во многих старых устройствах и браузерах (например, IE < 11) эти типы коллекций отсутствуют. В других же они имеют несоответствующую реализацию (скажем, IE 11). Если вы поддерживаете эти браузеры, то можете включить глобальный полифил в ваше приложение, такой как [core-js](https://github.com/zloirock/core-js) или [babel-polyfill](https://babeljs.io/docs/usage/polyfill/).
1010

11-
A polyfilled environment for React 16 using core-js to support older browsers might look like:
11+
Окружение для React 16, использующее core-js для поддержки старых браузеров, может выглядеть следующим образом:
1212

1313
```js
1414
import 'core-js/es6/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 также полагается на `requestAnimationFrame` (даже в тестовом окружении).
27+
Вы можете использовать пакет [raf](https://www.npmjs.com/package/raf) для создания шима `requestAnimationFrame`:
2828

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

0 commit comments

Comments
 (0)