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 |
Tags
- spread 연산자
- css framework
- MySQL
- springboot
- Git
- Unity Editor
- Google Refund
- Packet Network
- OverTheWire
- Spring Boot
- rpg server
- express
- Google Developer API
- Unity IAP
- Camera Movement
- server
- --watch
- SDK upgrade
- Camera Zoom
- draganddrop
- java
- docker
- linux
- nodejs
- mongoDB
- screencapture
- Digital Ocean
- unity
- critical rendering path
- react
Archives
- Today
- Total
목록JSX (1)
우당탕탕 개발일지

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