Skip to content

Commit 096eda9

Browse files
committed
2 parents 5906481 + 80c0764 commit 096eda9

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

weeks/week05/hsy/questions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# 왜 React hook 상태를 배열로 관리하지 않고 링크드리스트로 관리한걸까?
12
# 왜 React는 Hook을 key 기반이 아니라 “호출 순서 기반”으로 설계했을까?
23
- 관련 레퍼런스: https://overreacted.io/why-do-hooks-rely-on-call-order/#flaw-2-name-clashes
34
- React는 Hook 상태를 key나 이름으로 매칭하지 않고, 호출 순서로 매칭함

weeks/week05/joohyung/insights.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ React는 같은 React Element 객체가 유지되면 subtree 렌더링을 건너
66
https://ted-projects.com/react19-internals-3
77

88
```
9+
10+
const heavyComponent = <HeavyComponent />
11+
912
function Layout({ children }) {
1013
return <div>{children}</div>;
1114
}
@@ -17,7 +20,7 @@ export function Component() {
1720
<>
1821
<button onClick={() => setCount(c => c + 1)}>+</button>
1922
<Layout>
20-
<HeavyComponent />
23+
{heavyComponent}
2124
</Layout>
2225
</>
2326
);

0 commit comments

Comments
 (0)