[React 99% 에러잡기] Expected an assignment or function call and instead saw an expression no-unused-expressions


[React 99% 에러잡기] Expected an assignment or function call and instead saw an expression no-unused-expressions

나는 몰랐다. 이 Error 하나가 나에게 가져올 파장을 말이다. 1시간에 걸친 " ** 이게 왜 안돼지?"의 향연 끝에는 " *발 이래서 TypeScript를 쓰는구나" 라는 생각만이 남게 되었다. 더불어, .map() 메서드의 ( ) 소괄호 { } 중괄호 사용의 차이점에 대해서도 이번에 확실히 알게 되었다. Error Log Line 8:9: Expected an assignment or function call and instead saw an expression no-unused-expressions Search for the keywords to learn more about each error React Component Code const todoList = todos.map(({id,tex..


원문링크 : [React 99% 에러잡기] Expected an assignment or function call and instead saw an expression no-unused-expressions