Skip to content

Commit b2e238d

Browse files
committed
Translate Legacy Factories
1 parent 125238f commit b2e238d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Diff for: content/warnings/legacy-factories.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ layout: single
44
permalink: warnings/legacy-factories.html
55
---
66

7-
You probably came here because your code is calling your component as a plain function call. This is now deprecated:
7+
아마도 코드가 일반 함수 호출로 컴포넌트를 호출하기 때문에 이 경고를 보게 된 것입니다. 아래의 코드는 현재 사용되지 않습니다.
88

99
```javascript
1010
var MyComponent = require('MyComponent');
1111

1212
function render() {
13-
return MyComponent({ foo: 'bar' }); // WARNING
13+
return MyComponent({ foo: 'bar' }); // 경고
1414
}
1515
```
1616

1717
## JSX {#jsx}
1818

19-
React components can no longer be called directly like this. Instead [you can use JSX](/docs/jsx-in-depth.html).
19+
이렇게 직접 React 컴포넌트를 호출할 수 없습니다. [대신 JSX를 사용](/docs/jsx-in-depth.html) 할 수 있습니다.
2020

2121
```javascript
2222
var React = require('react');
@@ -27,9 +27,9 @@ function render() {
2727
}
2828
```
2929

30-
## Without JSX {#without-jsx}
30+
## JSX를 사용하지 않는다면 {#without-jsx}
3131

32-
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:
32+
JSX를 사용하고 싶지 않거나 사용할 수 없다면 컴포넌트를 호출하기 전에 팩토리에서 컴포넌트를 래핑해야합니다.
3333

3434
```javascript
3535
var React = require('react');
@@ -40,11 +40,11 @@ function render() {
4040
}
4141
```
4242

43-
This is an easy upgrade path if you have a lot of existing function calls.
43+
기존에 이런 함수 호출이 많다면 이렇게 하는 것이 쉽게 코드를 업그레이드할 수 있는 방법입니다.
4444

45-
## Dynamic components without JSX {#dynamic-components-without-jsx}
45+
## JSX를 사용하지 않는 동적 컴포넌트 {#dynamic-components-without-jsx}
4646

47-
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:
47+
동적인 소스에서 클래스 컴포넌트를 가져오는 경우라면 팩토리를 만들지 않아도 됩니다. 대신 컴포넌트를 인라인으로 만들면 됩니다.
4848

4949
```javascript
5050
var React = require('react');
@@ -54,6 +54,6 @@ function render(MyComponent) {
5454
}
5555
```
5656

57-
## In Depth {#in-depth}
57+
## 더 알아보기 {#in-depth}
5858

59-
[Read more about WHY we're making this change.](https://gist.github.com/sebmarkbage/d7bce729f38730399d28)
59+
[이렇게 변경된 이유에 대해 더 자세히 알아보십시오.](https://gist.github.com/sebmarkbage/d7bce729f38730399d28)

0 commit comments

Comments
 (0)