Skip to content

Commit ecbd21a

Browse files
gnujoowtaehwanno
andauthored
Update content/docs/higher-order-components.md
Co-authored-by: Taehwan Noh <[email protected]>
1 parent 9cd82e4 commit ecbd21a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: content/docs/higher-order-components.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function withSubscription(WrappedComponent, selectData) {
173173

174174
컴포넌트와 마찬가지로 `withSubscription`과 래핑된 컴포넌트 간 계약(contract)은 완전히 props 기반입니다. 이렇게하면 래핑된 컴포넌트에 동일한 props를 제공한다면 다른 고차 컴포넌트를 쉽게 변경할 수 있습니다. 예를 들어 데이터를 가져오는 라이브러리를 변경하는 경우 유용하게 사용할 수 있습니다.
175175

176-
## 원본 컴포넌트를 변환하지마세요. Composition을 사용하세요.
176+
## 원본 컴포넌트를 변경하지 마세요. 조합(Composition)하세요.
177177
. {#dont-mutate-the-original-component-use-composition}
178178

179179
고차 컴포넌트 내부에서 컴포넌트의 프로토타입을 수정(또는 변경)하지 않도록 합니다.

0 commit comments

Comments
 (0)