Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- springboot
- sudo
- ps
- Docker
- 도커파일
- systemd
- spring framework
- springboot jar
- docker container
- Oracle
- DB
- install
- root
- 설치
- jar배포
- join
- mac mariadb
- mysql error
- brew install mariadb
- mysql
- map is not a function
- Access denied for user ''@'localhost'
- jdk
- sts
- 파일 시스템
- react map error
- 도커
- 관리
- jar deploy
- Dockerfile
Archives
- Today
- Total
Yoon.s
[React] map 함수 사용 에러 본문
주의사항 - 에러
map is not a function 이라는 타입에러가 날 수 있다.
처음에 무엇이 문제인지 몰랐을 때는 map근처에 있는 것만 엄청 찾아봤다...
하지만, 문제는 map은 배열에서만 사용 가능
알고보니 내가 words를 설정할 때 배열이 아닌 객체로 설정한 것 !
state = { words: [], } 이라고 지정해주면 에러 깔끔하게 해결~~ :)
'프론트 > React' 카테고리의 다른 글
React/Mobx 오류 처리 (0) | 2020.09.11 |
---|---|
[React/Mobx] Mobx 시작하기 (0) | 2020.09.11 |
VSCode 환경셋팅 및 확장 프로그램 (0) | 2020.08.12 |
Comments