Skip to content

Commit 7be6849

Browse files
dev-hikunhg-pyun
andauthored
Update higher-order-components.md (#283)
* Update higher-order-components.md Add Introduction Partial Translation * Update higher-order-components.md Co-authored-by: Haegul Pyun <[email protected]>
1 parent 44da919 commit 7be6849

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/docs/higher-order-components.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
---
22
id: higher-order-components
3-
title: Higher-Order Components
3+
title: 고차 컴포넌트
44
permalink: docs/higher-order-components.html
55
---
66

7-
A higher-order component (HOC) is an advanced technique in React for reusing component logic. HOCs are not part of the React API, per se. They are a pattern that emerges from React's compositional nature.
7+
고차 컴포넌트(HOC, Higher Order Component)는 컴포넌트 로직을 재사용하기 위한 React의 고급 기술입니다. 고차 컴포넌트(HOC)는 React API의 일부가 아니며, 리액트의 구성적 특성에서 나오는 패턴입니다.
88

9-
Concretely, **a higher-order component is a function that takes a component and returns a new component.**
9+
구체적으로, **고차 컴포넌트는 컴포넌트를 가져와 새 컴포넌트를 반환하는 함수입니다.**
1010

1111
```js
1212
const EnhancedComponent = higherOrderComponent(WrappedComponent);
1313
```
1414

15-
Whereas a component transforms props into UI, a higher-order component transforms a component into another component.
15+
컴포넌트는 props를 UI로 변환하는 반면에, 고차 컴포넌트는 컴포넌트를 새로운 컴포넌트로 변환합니다.
1616

17-
HOCs are common in third-party React libraries, such as Redux's [`connect`](https://github.com/reduxjs/react-redux/blob/master/docs/api/connect.md#connect) and Relay's [`createFragmentContainer`](http://facebook.github.io/relay/docs/en/fragment-container.html).
17+
고차 컴포넌트(HOC)는 Redux의 [`connect`](https://github.com/reduxjs/react-redux/blob/master/docs/api/connect.md#connect)와 Relay의 [`createFragmentContainer`](http://facebook.github.io/relay/docs/en/fragment-container.html)와 같은 서드 파티 리액트 라이브러리에서 흔하게 볼 수 있습니다.
1818

19-
In this document, we'll discuss why higher-order components are useful, and how to write your own.
19+
이 문서에서는 고차 컴포넌트가 유용한 이유를 보여주고, 직접 작성하는 방법에 대해 알아보겠습니다.
2020

2121
## Use HOCs For Cross-Cutting Concerns {#use-hocs-for-cross-cutting-concerns}
2222

0 commit comments

Comments
 (0)