From b2e238d69d8dd69ba9779f442f0696e1648d80f9 Mon Sep 17 00:00:00 2001 From: simsim0709 Date: Sat, 2 Mar 2019 16:14:11 +0900 Subject: [PATCH 1/4] Translate Legacy Factories --- content/warnings/legacy-factories.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/content/warnings/legacy-factories.md b/content/warnings/legacy-factories.md index a99d22e2f..01eb2c02d 100644 --- a/content/warnings/legacy-factories.md +++ b/content/warnings/legacy-factories.md @@ -4,19 +4,19 @@ layout: single permalink: warnings/legacy-factories.html --- -You probably came here because your code is calling your component as a plain function call. This is now deprecated: +아마도 코드가 일반 함수 호출로 컴포넌트를 호출하기 때문에 이 경고를 보게 된 것입니다. 아래의 코드는 현재 사용되지 않습니다. ```javascript var MyComponent = require('MyComponent'); function render() { - return MyComponent({ foo: 'bar' }); // WARNING + return MyComponent({ foo: 'bar' }); // 경고 } ``` ## JSX {#jsx} -React components can no longer be called directly like this. Instead [you can use JSX](/docs/jsx-in-depth.html). +이렇게 직접 React 컴포넌트를 호출할 수 없습니다. [대신 JSX를 사용](/docs/jsx-in-depth.html) 할 수 있습니다. ```javascript var React = require('react'); @@ -27,9 +27,9 @@ function render() { } ``` -## Without JSX {#without-jsx} +## JSX를 사용하지 않는다면 {#without-jsx} -If you don't want to, or can't use JSX, then you'll need to wrap your component in a factory before calling it: +JSX를 사용하고 싶지 않거나 사용할 수 없다면 컴포넌트를 호출하기 전에 팩토리에서 컴포넌트를 래핑해야합니다. ```javascript var React = require('react'); @@ -40,11 +40,11 @@ function render() { } ``` -This is an easy upgrade path if you have a lot of existing function calls. +기존에 이런 함수 호출이 많다면 이렇게 하는 것이 쉽게 코드를 업그레이드할 수 있는 방법입니다. -## Dynamic components without JSX {#dynamic-components-without-jsx} +## JSX를 사용하지 않는 동적 컴포넌트 {#dynamic-components-without-jsx} -If you get a component class from a dynamic source, then it might be unnecessary to create a factory that you immediately invoke. Instead you can just create your element inline: +동적인 소스에서 클래스 컴포넌트를 가져오는 경우라면 팩토리를 만들지 않아도 됩니다. 대신 컴포넌트를 인라인으로 만들면 됩니다. ```javascript var React = require('react'); @@ -54,6 +54,6 @@ function render(MyComponent) { } ``` -## In Depth {#in-depth} +## 더 알아보기 {#in-depth} -[Read more about WHY we're making this change.](https://gist.github.com/sebmarkbage/d7bce729f38730399d28) +[이렇게 변경된 이유에 대해 더 자세히 알아보십시오.](https://gist.github.com/sebmarkbage/d7bce729f38730399d28) From 0658d2cc0bca10ff3427d9f12eb3fc8b73f8532d Mon Sep 17 00:00:00 2001 From: simsim0709 Date: Sat, 2 Mar 2019 16:18:30 +0900 Subject: [PATCH 2/4] Fix wrong translation --- content/warnings/legacy-factories.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/warnings/legacy-factories.md b/content/warnings/legacy-factories.md index 01eb2c02d..8b5daacfe 100644 --- a/content/warnings/legacy-factories.md +++ b/content/warnings/legacy-factories.md @@ -44,7 +44,7 @@ function render() { ## JSX를 사용하지 않는 동적 컴포넌트 {#dynamic-components-without-jsx} -동적인 소스에서 클래스 컴포넌트를 가져오는 경우라면 팩토리를 만들지 않아도 됩니다. 대신 컴포넌트를 인라인으로 만들면 됩니다. +동적인 소스에서 클래스 컴포넌트를 가져오는 경우라면 팩토리를 만들지 않아도 됩니다. 대신 엘리먼트를 인라인으로 만들면 됩니다. ```javascript var React = require('react'); From c217247ac04b7cbb76372bf905d0305e0685965a Mon Sep 17 00:00:00 2001 From: simsim0709 Date: Sun, 3 Mar 2019 13:04:09 +0900 Subject: [PATCH 3/4] Apply a review --- content/warnings/legacy-factories.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/warnings/legacy-factories.md b/content/warnings/legacy-factories.md index 8b5daacfe..7c2e7c206 100644 --- a/content/warnings/legacy-factories.md +++ b/content/warnings/legacy-factories.md @@ -16,7 +16,7 @@ function render() { ## JSX {#jsx} -이렇게 직접 React 컴포넌트를 호출할 수 없습니다. [대신 JSX를 사용](/docs/jsx-in-depth.html) 할 수 있습니다. +이렇게 직접 React 컴포넌트를 호출할 수 없습니다. [대신 JSX를 사용 할 수 있습니다.](/docs/jsx-in-depth.html) ```javascript var React = require('react'); @@ -56,4 +56,4 @@ function render(MyComponent) { ## 더 알아보기 {#in-depth} -[이렇게 변경된 이유에 대해 더 자세히 알아보십시오.](https://gist.github.com/sebmarkbage/d7bce729f38730399d28) +[이렇게 변경된 이유에 대해 더 자세히 알아보세요.](https://gist.github.com/sebmarkbage/d7bce729f38730399d28) From 848abfdadb403ce4ff718873658222b45d21a9a8 Mon Sep 17 00:00:00 2001 From: simsim0709 Date: Tue, 5 Mar 2019 13:19:09 +0900 Subject: [PATCH 4/4] Fix translation --- content/warnings/legacy-factories.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/warnings/legacy-factories.md b/content/warnings/legacy-factories.md index 7c2e7c206..cbee1d6e7 100644 --- a/content/warnings/legacy-factories.md +++ b/content/warnings/legacy-factories.md @@ -4,7 +4,7 @@ layout: single permalink: warnings/legacy-factories.html --- -아마도 코드가 일반 함수 호출로 컴포넌트를 호출하기 때문에 이 경고를 보게 된 것입니다. 아래의 코드는 현재 사용되지 않습니다. +아마도 코드에서 일반 함수처럼 컴포넌트를 호출했기 때문에 이 경고를 보게 된 것입니다. 아래의 코드는 현재 사용되지 않습니다. ```javascript var MyComponent = require('MyComponent');