From 7456bf1f29de65a28fba4cdc99eb3d3df992b58a Mon Sep 17 00:00:00 2001 From: Antony Budianto Date: Tue, 12 Feb 2019 16:48:27 +0700 Subject: [PATCH] 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 --- .../reference-javascript-environment-requirements.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/docs/reference-javascript-environment-requirements.md b/content/docs/reference-javascript-environment-requirements.md index 44a36eb9d..d2da70fe9 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: Kebutuhan Lingkungan 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 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/). -A polyfilled environment for React 16 using core-js to support older browsers might look like: +Lingkungan untuk React 16 yang sudah ditambahkan *polyfill* menggunakan *core-js* untuk mendukung *browser* lama mungkin terlihat seperti berikut: ```js import 'core-js/es6/map'; @@ -18,13 +18,13 @@ import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( -

Hello, world!

, +

Halo, dunia!

, 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 juga membutuhkan `requestAnimationFrame` (termasuk di lingkungan test). +Kamu dapat menggunakan *package* [raf](https://www.npmjs.com/package/raf) untuk mendukung `requestAnimationFrame`: ```js import 'raf/polyfill';