From 9e1f09166fb671b5a216d65e196642c19d9ca150 Mon Sep 17 00:00:00 2001 From: Alessandro De Blasis Date: Mon, 18 Mar 2019 15:45:07 +0000 Subject: [PATCH] js-env: done Signed-off-by: Alessandro De Blasis --- content/blog/2017-09-26-react-v16.0.md | 2 +- content/docs/nav.yml | 2 +- .../reference-javascript-environment-requirements.md | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/content/blog/2017-09-26-react-v16.0.md b/content/blog/2017-09-26-react-v16.0.md index b9f377851..1d09b0dda 100644 --- a/content/blog/2017-09-26-react-v16.0.md +++ b/content/blog/2017-09-26-react-v16.0.md @@ -178,7 +178,7 @@ React 16 includes a number of small breaking changes. These only affect uncommon * `react-dom/dist/react-dom.js` → `react-dom/umd/react-dom.development.js` * `react-dom/dist/react-dom.min`.js → `react-dom/umd/react-dom.production.min.js` -## JavaScript Environment Requirements {#javascript-environment-requirements} +## Requisiti Ambiente JavaScript {#javascript-environment-requirements} 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/). diff --git a/content/docs/nav.yml b/content/docs/nav.yml index 90ce6e124..2854f9fe7 100644 --- a/content/docs/nav.yml +++ b/content/docs/nav.yml @@ -101,7 +101,7 @@ - id: test-renderer title: Test Renderer - id: javascript-environment-requirements - title: JS Environment Requirements + title: Requisiti Ambiente JS - id: glossary title: Glossary - title: Hooks (New) diff --git a/content/docs/reference-javascript-environment-requirements.md b/content/docs/reference-javascript-environment-requirements.md index 44a36eb9d..28e26ff52 100644 --- a/content/docs/reference-javascript-environment-requirements.md +++ b/content/docs/reference-javascript-environment-requirements.md @@ -1,14 +1,14 @@ --- id: javascript-environment-requirements -title: JavaScript Environment Requirements +title: Requisiti Ambiente JavaScript layout: docs category: Reference permalink: docs/javascript-environment-requirements.html --- -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/). +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/). -A polyfilled environment for React 16 using core-js to support older browsers might look like: +Un ambiente con polyfill per React 16 utilizzando core-js per supportare browser più vecchi dovrebbe essere così: ```js import 'core-js/es6/map'; @@ -18,13 +18,13 @@ import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( -

Hello, world!

, +

Ciao Mondo!

, document.getElementById('root') ); ``` -React also depends on `requestAnimationFrame` (even in test environments). -You can use the [raf](https://www.npmjs.com/package/raf) package to shim `requestAnimationFrame`: +React dipende inoltre da `requestAnimationFrame` (anche negli ambienti di test). +Puoi usare il pacchetto [raf](https://www.npmjs.com/package/raf) come shim (alternativa avente le stesse API) per `requestAnimationFrame`: ```js import 'raf/polyfill';