[React] setState()의 비동기성

Steve·2021년 6월 3일
0

공부

목록 보기
4/10

Calling the setter function setValue(newValue) of useState() hook (or this.setState() of class components) doesn’t exactly update the state, but rather schedules a state update.

How React Updates State
https://dmitripavlutin.com/how-react-updates-state/

https://reactjs.org/docs/state-and-lifecycle.html#state-updates-may-be-asynchronous

profile
게임과 프론트엔드에 관심이 많습니다.

0개의 댓글