250x250
반응형
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
- github
- python
- deploy
- 500
- axios
- RDS
- TypeScript
- Express
- MUI
- React
- Java
- Troubleshooting
- javascript
- ngrok
- linux
- webhook
- MongoDB
- macbook
- docker
- AWS
- fastapi
- error
- Github Actions
- springboot
- EC2
- js
- Spring
- Jenkins
- nodejs
- AWS EC2
Archives
- Today
- Total
728x90
반응형
SMALL
목록rendering (1)
BEAT A SHOTGUN
[TROUBLESHOOTING] REACT map 함수로 감싸진 'ONCLICK' METHOD 가 페이지 렌더링 시 실행되는 에러
ERROR ❌ // FE const handleReplyDelete(props){ console.log(props.replyId) } ... Delete onClick 이벤트를 넣은 버튼을 눌렀을 때 props 로 넣어준 reply 가 제대로 넘겨주는지 확인하기 위해 console에 replyId 를 출력하는 간단한 이벤트를 발생시켜보았다. 그런데 페이지를 Rendering 할 때 onClick 이벤트가 자동으로 작동된 뒤, 버튼을 눌러도 console 에 replyId 를 찍어주지 않았다. Rendering 할 때 작동 된 뒤로는 버튼이 전혀 반응이 없어서 너무 의아했다. 해결 ✅ {handleReplyDelete(reply)}}>Delete 이렇게 Arrow Function 을 사용해 한 번 더 함수..
TROUBLESHOOTING
2022. 9. 7. 20:57
728x90
반응형
LIST