본문 바로가기
프로그래밍 에러 Error

[리액트 에러] Array.map is not a function

by 메모장2 2021. 8. 9.
반응형

https://velog.io/@incheon/React-%EC%8B%A4%ED%96%89-%EC%98%A4%EB%A5%98-Array.map-is-not-a-function

 

React 실행 오류 Array.map is not a function

문제상황 TypeError: articles.map is not a function해답은 스택오버플로우에서 찾을 수 있었다.Objects, {} in JavaScript does not have the method .map(). It's only for Arrays,

velog.io

 

https://www.pluralsight.com/guides/typeerror-handling-in-react.js-for-map-function

 

TypeError Handling in React.js for Map Function | Pluralsight

During design and development of frontend interfaces in React.js, working with data from different sources is quite normal and frequent. This data needs to be parsed accurately within your React app. If the data isn't parsed correctly, you will run into er

www.pluralsight.com

 

 

반응형