[React] setState()의 비동기성

Steve·2021년 6월 3일

공부

목록 보기
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개의 댓글