We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5906481 + 80c0764 commit 096eda9Copy full SHA for 096eda9
2 files changed
weeks/week05/hsy/questions.md
@@ -1,3 +1,4 @@
1
+# 왜 React hook 상태를 배열로 관리하지 않고 링크드리스트로 관리한걸까?
2
# 왜 React는 Hook을 key 기반이 아니라 “호출 순서 기반”으로 설계했을까?
3
- 관련 레퍼런스: https://overreacted.io/why-do-hooks-rely-on-call-order/#flaw-2-name-clashes
4
- React는 Hook 상태를 key나 이름으로 매칭하지 않고, 호출 순서로 매칭함
weeks/week05/joohyung/insights.md
@@ -6,6 +6,9 @@ React는 같은 React Element 객체가 유지되면 subtree 렌더링을 건너
6
https://ted-projects.com/react19-internals-3
7
8
```
9
+
10
+const heavyComponent = <HeavyComponent />
11
12
function Layout({ children }) {
13
return <div>{children}</div>;
14
}
@@ -17,7 +20,7 @@ export function Component() {
17
20
<>
18
21
<button onClick={() => setCount(c => c + 1)}>+</button>
19
22
<Layout>
- <HeavyComponent />
23
+ {heavyComponent}
24
</Layout>
25
</>
26
);
0 commit comments