From 2a86af048cad44dd90d13f9b8824ff4584095924 Mon Sep 17 00:00:00 2001 From: Taegon Kim Date: Sun, 17 Feb 2019 03:45:41 -0800 Subject: [PATCH 1/3] Translate JavaScript Environment Requirements --- .../reference-javascript-environment-requirements.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/docs/reference-javascript-environment-requirements.md b/content/docs/reference-javascript-environment-requirements.md index 44a36eb9d..ff153a0f5 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: 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 버전은 컬렉션 자료형인 [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map)과 [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set)을 사용합니다. 이 기능을 자체적으로 지원하지 않거나(예. IE 11 미만) 지원은 하지만 잘 호환되지 않는(예. IE 11) 구식 브라우저나 기기에서도 React를 사용해야 한다면 애플리케이션에 [core-js](https://github.com/zloirock/core-js)나 [babel-polyfill](https://babeljs.io/docs/usage/polyfill/) 같은 전역 폴리필(polyfill)을 포함하는 것도 고려해보세요. -A polyfilled environment for React 16 using core-js to support older browsers might look like: +다음은 구식 브라우저 지원을 위해 core-js 폴리필을 적용한 환경에서 React 16 버전을 사용하는 예시입니다. ```js import 'core-js/es6/map'; @@ -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에는 `requestAnimationFrame` 기능도 필요한데, 이는 테스트 환경에서도 사용됩니다. +구식 브라우저에서는 [raf](https://www.npmjs.com/package/raf) 패키지를 사용하여 `requestAnimationFrame` 기능을 지원할 수 있습니다. ```js import 'raf/polyfill'; From 54d3d51542c25e0d3e7370045199941ca3d9eb04 Mon Sep 17 00:00:00 2001 From: Taegon Kim Date: Tue, 26 Feb 2019 20:25:54 +0900 Subject: [PATCH 2/3] =?UTF-8?q?Replaced:=20=EA=B5=AC=EC=8B=9D=20->=20?= =?UTF-8?q?=EC=98=A4=EB=9E=98=EB=90=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/docs/reference-javascript-environment-requirements.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/reference-javascript-environment-requirements.md b/content/docs/reference-javascript-environment-requirements.md index ff153a0f5..6faa61579 100644 --- a/content/docs/reference-javascript-environment-requirements.md +++ b/content/docs/reference-javascript-environment-requirements.md @@ -6,7 +6,7 @@ category: Reference permalink: docs/javascript-environment-requirements.html --- -React 16 버전은 컬렉션 자료형인 [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map)과 [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set)을 사용합니다. 이 기능을 자체적으로 지원하지 않거나(예. IE 11 미만) 지원은 하지만 잘 호환되지 않는(예. IE 11) 구식 브라우저나 기기에서도 React를 사용해야 한다면 애플리케이션에 [core-js](https://github.com/zloirock/core-js)나 [babel-polyfill](https://babeljs.io/docs/usage/polyfill/) 같은 전역 폴리필(polyfill)을 포함하는 것도 고려해보세요. +React 16 버전은 컬렉션 자료형인 [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map)과 [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set)을 사용합니다. 이 기능을 자체적으로 지원하지 않거나(예. IE 11 미만) 지원은 하지만 잘 호환되지 않는(예. IE 11) 오래된 브라우저나 기기에서도 React를 사용해야 한다면 애플리케이션에 [core-js](https://github.com/zloirock/core-js)나 [babel-polyfill](https://babeljs.io/docs/usage/polyfill/) 같은 전역 폴리필(polyfill)을 포함하는 것도 고려해보세요. 다음은 구식 브라우저 지원을 위해 core-js 폴리필을 적용한 환경에서 React 16 버전을 사용하는 예시입니다. From 248c2dfbd412b7e5916fbe3ce0a186640d014db7 Mon Sep 17 00:00:00 2001 From: Taegon Kim Date: Tue, 26 Feb 2019 20:27:19 +0900 Subject: [PATCH 3/3] =?UTF-8?q?Replaced:=20=EA=B5=AC=EC=8B=9D=20->=20?= =?UTF-8?q?=EC=98=A4=EB=9E=98=EB=90=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/docs/reference-javascript-environment-requirements.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/reference-javascript-environment-requirements.md b/content/docs/reference-javascript-environment-requirements.md index 6faa61579..3f60e481a 100644 --- a/content/docs/reference-javascript-environment-requirements.md +++ b/content/docs/reference-javascript-environment-requirements.md @@ -8,7 +8,7 @@ permalink: docs/javascript-environment-requirements.html React 16 버전은 컬렉션 자료형인 [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map)과 [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set)을 사용합니다. 이 기능을 자체적으로 지원하지 않거나(예. IE 11 미만) 지원은 하지만 잘 호환되지 않는(예. IE 11) 오래된 브라우저나 기기에서도 React를 사용해야 한다면 애플리케이션에 [core-js](https://github.com/zloirock/core-js)나 [babel-polyfill](https://babeljs.io/docs/usage/polyfill/) 같은 전역 폴리필(polyfill)을 포함하는 것도 고려해보세요. -다음은 구식 브라우저 지원을 위해 core-js 폴리필을 적용한 환경에서 React 16 버전을 사용하는 예시입니다. +다음은 오래된 브라우저 지원을 위해 core-js 폴리필을 적용한 환경에서 React 16 버전을 사용하는 예시입니다. ```js import 'core-js/es6/map'; @@ -24,7 +24,7 @@ ReactDOM.render( ``` React에는 `requestAnimationFrame` 기능도 필요한데, 이는 테스트 환경에서도 사용됩니다. -구식 브라우저에서는 [raf](https://www.npmjs.com/package/raf) 패키지를 사용하여 `requestAnimationFrame` 기능을 지원할 수 있습니다. +오래된 브라우저에서는 [raf](https://www.npmjs.com/package/raf) 패키지를 사용하여 `requestAnimationFrame` 기능을 지원할 수 있습니다. ```js import 'raf/polyfill';