본문 바로가기

Yoon.s

검색하기
Yoon.s
프로필사진 yo_onHJ

  • 분류 전체보기 (60)
    • Mac (4)
    • 인프라 (23)
      • linux (12)
      • Docker (10)
      • Kubernetes (1)
    • 프론트 (8)
      • HTML CSS (0)
      • Javascript (4)
      • React (4)
    • 백 (25)
      • DB (10)
      • Java (3)
      • Spring (10)
      • Python (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/09   »
일 월 화 수 목 금 토
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
Tags
  • install
  • join
  • springboot
  • Access denied for user ''@'localhost'
  • Docker
  • 설치
  • jdk
  • mysql error
  • 도커
  • springboot jar
  • ps
  • Oracle
  • jar배포
  • root
  • 파일 시스템
  • spring framework
  • systemd
  • brew install mariadb
  • Dockerfile
  • mac mariadb
  • sudo
  • sts
  • 도커파일
  • map is not a function
  • jar deploy
  • DB
  • mysql
  • 관리
  • react map error
  • docker container
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록react map error (1)

Yoon.s

[React] map 함수 사용 에러

주의사항 - 에러 map is not a function 이라는 타입에러가 날 수 있다. 처음에 무엇이 문제인지 몰랐을 때는 map근처에 있는 것만 엄청 찾아봤다... 하지만, 문제는 map은 배열에서만 사용 가능 알고보니 내가 words를 설정할 때 배열이 아닌 객체로 설정한 것 ! state = { words: [], } 이라고 지정해주면 에러 깔끔하게 해결~~ :)

프론트/React 2020. 10. 2. 22:45
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바