-
Error: setState(...): takes an object of state variables to update or a function which returns an object of state variables.Error 2021. 2. 16. 15:25
Error: setState(...): takes an object of state variables to update or a function which returns an object of state variables
It's giving me error in else part this.state.incorrect + 1 and this.state.correct + 1 I have seen this but not solve my problem React Native: setState(...): takes an object of state variables to u...
stackoverflow.com
해결
this.setState({count: count + 1}, function() { });
'Error' 카테고리의 다른 글
[mysql] 테이블에 데이터 한글 입력 시 오류 (0) 2021.03.04 [mysql] (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_unicode_ci,IMPLICIT) for operation '=' (0) 2021.03.04 [mysql] Access denied for user 'root'@'localhost' (0) 2021.03.04 [bcrypt] install error (0) 2021.03.04 한글 입력시 이벤트 두 번 발생(keyup, keydown) (0) 2021.02.16