본문 바로가기

우당탕탕 개발일지

검색하기
우당탕탕 개발일지
프로필사진 devchop

  • 분류 전체보기 (162)
    • Server (34)
      • 방치RPG 서버 (9)
    • Unity (25)
    • ETC (8)
    • Client (13)
    • Algorithm(c++) (82)
      • Level 1 (5)
      • Level 2 (39)
      • Level 3 (35)
      • Level 4 (3)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • Unity Editor
  • Git
  • critical rendering path
  • react
  • express
  • java
  • springboot
  • nodejs
  • spread 연산자
  • OverTheWire
  • docker
  • server
  • linux
  • screencapture
  • mongoDB
  • css framework
  • unity
  • SDK upgrade
  • Unity IAP
  • draganddrop
  • Camera Zoom
  • rpg server
  • --watch
  • Digital Ocean
  • Spring Boot
  • Google Developer API
  • Google Refund
  • MySQL
  • Packet Network
  • Camera Movement
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록map (1)

우당탕탕 개발일지

[React] JSX 리스트 반복 출력 : map

JSX에서는 FOR문을 사용할 수 없다. for문과 비슷한 동작을 하는것이 바로 map()함수이다.Todo리스트를 구현할거고, 다음과 같이 배열 안에 해야할 일 목록이 들어있다고 해보자.todoData = [ { id: "1", title: "study", completed: false, }, { id: "2", title: "clean room", completed: true, }, ]; 이것을 jsx에서 리스트로 표현을 하고자 할때는 다음과 같이 map()을 사용해주면 된다. 아래는 render()내의 함수이다.render() { return ( {this.todoData.map((data) => ( ..

Client 2024. 5. 16. 18:45
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바