You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: content/docs/faq-state.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,9 @@ handleSomething() {
80
80
81
81
### 언제 `setState` 가 비동기적인가요? {#when-is-setstate-asynchronous}
82
82
83
-
현재 `setState` 는 이벤트 핸들러 내에서 비동기적입니다. 이로 인해 만약 `부모`와 `자식`이 모두 click 이벤트에서 `setState`를 호출한다면 `자식`은 두 번 렌더링되지 않습니다. 대신 React는 브라우저 이벤트가 끝날 시점에 state를 일괄적으로 업데이트합니다. 이는 더 큰 규모의 앱에서 뚜렷한 성능 향상을 만들어냅니다.
83
+
현재 `setState` 는 이벤트 핸들러 내에서 비동기적입니다.
84
+
85
+
이로 인해 만약 `부모`와 `자식`이 모두 click 이벤트에서 `setState`를 호출한다면 `자식`은 두 번 렌더링되지 않습니다. 대신 React는 브라우저 이벤트가 끝날 시점에 state를 일괄적으로 업데이트합니다. 이는 더 큰 규모의 앱에서 뚜렷한 성능 향상을 만들어냅니다.
84
86
85
87
이것은 구현 세부사항이므로 전적으로 의존해선 안됩니다. 추후 React는 기본적으로 더 많은 경우에서 일괄적으로 업데이트를 처리할 것입니다.
0 commit comments