Skip to content

Commit

Permalink
Merge pull request #42 from reactjs/js-env-requirements
Browse files Browse the repository at this point in the history
JavaScript Environment Requirements API reference translation
  • Loading branch information
punkah authored Mar 2, 2020
2 parents 7e4c709 + d49fe8b commit d710c9c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 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: JavaScript környezeti követelmények
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/).
A React 16 függ a [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) és [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) kollekció típusoktól. Ha régebbi böngészőket és eszközöket is támogatsz, amik ezt még alapból nem támogatják (pl. IE < 11), vagy előírásnak nem megfelelően vannak implementálva (pl. IE 11), fontold meg egy globális polyfill beágyazását az összecsomagolt alkalmazásodba, mint például a [core-js](https://github.com/zloirock/core-js) vagy a [babel-polyfill](https://babeljs.io/docs/usage/polyfill/).

A polyfilled environment for React 16 using core-js to support older browsers might look like:
Egy core-js polyfillel ellátott React 16 környezet, ami régebbi böngészőket is támogat, így nézne ki:

```js
import 'core-js/es/map';
Expand All @@ -18,13 +18,13 @@ import React from 'react';
import ReactDOM from 'react-dom';

ReactDOM.render(
<h1>Hello, world!</h1>,
<h1>Helló világ!</h1>,
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`:
A React függ a `requestAnimationFrame` metódustól is (tesztkörnyezetekben szintúgy).
A `requestAnimationFrame` alátételezéséhez használhatod a [raf](https://www.npmjs.com/package/raf) csomagot:

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

0 comments on commit d710c9c

Please sign in to comment.