Skip to content

Commit fd6791f

Browse files
authored
Merge pull request #279 from YimJiYoung/fix-duplicate-content
Remove duplicate content and add link
2 parents f90e7fb + 6dc688c commit fd6791f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

content/docs/reference-react.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,7 @@ const MyComponent = React.memo(function MyComponent(props) {
128128

129129
당신의 컴포넌트가 동일한 props로 동일한 결과를 렌더링해낸다면, `React.memo`를 호출하고 결과를 메모이징(Memoizing)하도록 래핑하여 경우에 따라 성능 향상을 누릴 수 있습니다. 즉, React는 컴포넌트를 렌더링하지 않고 마지막으로 렌더링된 결과를 재사용합니다.
130130

131-
`React.memo` only checks for prop changes. If your function component wrapped in `React.memo` has a [`useState`](/docs/hooks-state.html) or [`useContext`](/docs/hooks-reference.html#usecontext) Hook in its implementation, it will still rerender when state or context change.
132-
133-
`React.memo`는 props 변화에만 영향을 줍니다. `React.memo`로 감싸진 함수 컴포넌트 구현에 `useState` 또는 `useContext` 훅을 사용한다면, 여전히 state나 context가 변할 때 다시 렌더링됩니다.
131+
`React.memo`는 props 변화에만 영향을 줍니다. `React.memo`로 감싸진 함수 컴포넌트 구현에 [`useState`](/docs/hooks-state.html) 또는 [`useContext`](/docs/hooks-reference.html#usecontext) 훅을 사용한다면, 여전히 state나 context가 변할 때 다시 렌더링됩니다.
134132

135133
props가 갖는 복잡한 객체에 대하여 얕은 비교만을 수행하는 것이 기본 동작입니다. 다른 비교 동작을 원한다면, 두 번째 인자로 별도의 비교 함수를 제공하면 됩니다.
136134

0 commit comments

Comments
 (0)