반응형 functional update1 Functional Update : 상태변경이 비동기적으로 이루어질때 https://betterprogramming.pub/you-dont-know-usestate-until-you-ve-used-functional-updates-5da52117620f You Don’t Know useState Until You’ve Used Functional Updates When we might need useState functional updates and how to use them betterprogramming.pub 위 글을 번역 및 요약했습니다. Functional Update functional update는 다음과 같은 방식이다. const [state,setState] = useState(0) const handleButton = () => { // 왜 setSta.. 2023. 7. 11. 이전 1 다음 반응형