프로그래밍/react
Uncaught TypeError: function is not iterable (cannot read property Symbol(Symbol.iterator))
한코코
2022. 10. 27. 23:26
잡히지 않은 타입에러 : 함수를 반복할 수 없습니다. ( 속성 기호( 기호.반복자 )를 읽을 수 없음 )
찬찬히 보니까 함수 뒤에 실행할때 붙이는 소괄호를 까먹었다.
const [web3,account] = useWeb3;
소괄호 붙이니 함수가 문제없이 실행되면서 문제해결
const [web3,account] = useWeb3();