Skip to content

Commit

Permalink
fins al final
Browse files Browse the repository at this point in the history
  • Loading branch information
nglvnyls committed Sep 29, 2020
1 parent 599d909 commit 921ff71
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions content/docs/reference-javascript-environment-requirements.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
id: javascript-environment-requirements
title: JavaScript Environment Requirements
title: Requeriments de l'Entorn de 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 depèn dels tipus de col·lecció [Map](https://developer.mozilla.org/ca/docs/Web/JavaScript/Referencia/Objectes_globals/Map) i [Set](https://developer.mozilla.org/ca/docs/Web/JavaScript/Reference/Global_Objects/Set). Si vols compatibilitat amb els navegadors i dispositius més antics que no poden proporcionar aquests productes de forma nativa (per exemple, IE < 11) o que tenen implementacions no compatibles (per exemple IE 11), considera incloure un *polyfill* global a la teva aplicació, com ara [core-js](https:github.com/zloirock/core-js) o [babel-polyfill](https:babeljs.io/docs/age).

A polyfilled environment for React 16 using core-js to support older browsers might look like:
Un entorn *polyfilled* de React 16 que faci servir *core-js* per fer-lo compatible amb els navegadors més antics es podria semblar a:

```js
import 'core-js/es/map';
Expand All @@ -23,8 +23,8 @@ ReactDOM.render(
);
```

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 també depèn de `requestAnimationFrame` (fins i tot en entorns de test).
Pots fer servir el paquet [raf](https://www.npmjs.com/package/raf) per a apedaçar `requestAnimationFrame`:

```js
import 'raf/polyfill';
Expand Down

0 comments on commit 921ff71

Please sign in to comment.