Skip to content

Commit 7456bf1

Browse files
antonybudiantogedeagas
authored andcommitted
Translate JavaScript Environment Requirements (#15)
* Update reference-javascript-environment-requirements.md * fix italic for foreign words * Add italic for package * Update title * Fix collection italic * update italic words and device
1 parent c769b0a commit 7456bf1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: 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: Kebutuhan Lingkungan 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 membutuhkan tipe data *collection* seperti [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) dan [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set). Jika kamu ingin mendukung *browser* dan perangkat lama yang mungkin belum menyediakannya secara langsung (contoh: IE < 11) atau *browser* yang mengimplementasikannya dengan tidak sesuai (contoh: IE 11), mohon menambahkan *polyfill global* di bundel aplikasi, seperti [core-js](https://github.com/zloirock/core-js) atau [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+
Lingkungan untuk React 16 yang sudah ditambahkan *polyfill* menggunakan *core-js* untuk mendukung *browser* lama mungkin terlihat seperti berikut:
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>Halo, dunia!</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 juga membutuhkan `requestAnimationFrame` (termasuk di lingkungan test).
27+
Kamu dapat menggunakan *package* [raf](https://www.npmjs.com/package/raf) untuk mendukung `requestAnimationFrame`:
2828

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

0 commit comments

Comments
 (0)