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
But there is one other factor at play here. React waits until all code in the event handlers has run before processing your state updates. This is why the re-render only happens after all these setNumber() calls.
This might remind you of a waiter taking an order at the restaurant. A waiter doesn’t run to the kitchen at the mention of your first dish! Instead, they let you finish your order, let you make changes to it, and even take orders from other people at the table. batch에 대한 예시문장
그 아래 예제를 보고 이해를 했는데 저 웨이터에 비유해서 하는말이 확 와닿지가 않아서 저 문단을 읽는데 조금 어려움이 있었습니다. 다른분들은 어떠셨나요?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
#31
그 아래 예제를 보고 이해를 했는데 저 웨이터에 비유해서 하는말이 확 와닿지가 않아서 저 문단을 읽는데 조금 어려움이 있었습니다. 다른분들은 어떠셨나요?
Beta Was this translation helpful? Give feedback.
All reactions