Skip to content

Commit 9e1f091

Browse files
committed
js-env: done
Signed-off-by: Alessandro De Blasis <[email protected]>
1 parent 31e5efc commit 9e1f091

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

content/blog/2017-09-26-react-v16.0.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ React 16 includes a number of small breaking changes. These only affect uncommon
178178
* `react-dom/dist/react-dom.js``react-dom/umd/react-dom.development.js`
179179
* `react-dom/dist/react-dom.min`.js → `react-dom/umd/react-dom.production.min.js`
180180

181-
## JavaScript Environment Requirements {#javascript-environment-requirements}
181+
## Requisiti Ambiente JavaScript {#javascript-environment-requirements}
182182

183183
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), 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/).
184184

content/docs/nav.yml

+1-1
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: Requisiti Ambiente JS
105105
- id: glossary
106106
title: Glossary
107107
- title: Hooks (New)

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

+6-6
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: Requisiti Ambiente 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 dipende dai tipi di collezione [Map](https://developer.mozilla.org/it/docs/Web/JavaScript/Reference/Global_Objects/Map) e [Set](https://developer.mozilla.org/it/docs/Web/JavaScript/Reference/Global_Objects/Set). Se supporti browsers e dispositivi che non offrono tali tipi in modo nativo (ad esempio IE < 11) oppure nel caso di implementazioni non conformi (ad esempio: IE 11), consudera l'inclusione di un [polyfill](https://it.wikipedia.org/wiki/Polyfill) globale nel tuo bundle dell'applicazione, quale [core-js](https://github.com/zloirock/core-js) o [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+
Un ambiente con polyfill per React 16 utilizzando core-js per supportare browser più vecchi dovrebbe essere così:
1212

1313
```js
1414
import 'core-js/es6/map';
@@ -18,13 +18,13 @@ import React from 'react';
1818
import ReactDOM from 'react-dom';
1919

2020
ReactDOM.render(
21-
<h1>Hello, world!</h1>,
21+
<h1>Ciao Mondo!</h1>,
2222
document.getElementById('root')
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 dipende inoltre da `requestAnimationFrame` (anche negli ambienti di test).
27+
Puoi usare il pacchetto [raf](https://www.npmjs.com/package/raf) come shim (alternativa avente le stesse API) per `requestAnimationFrame`:
2828

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

0 commit comments

Comments
 (0)