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
- route
- 브라우저 렌더링
- 미리보기
- 배포
- updater
- useEffect
- 동기
- Preview
- routing
- imagePreview
- socket.io
- Github Actions
- 비동기
- 7기
- 라우팅
- FileReader
- 채팅방
- react
- previousState
- 스파르타코딩클럽
- 개발
- setstate
- S3
- 후기
- Redux
- CI/CD
- qwe
- rendering
- 항해99
- 접근 제한 라우팅
Archives
- Today
- Total
목록2022/06/16 (1)
삐옹
state 불변성을 지켜라(댓글 달기)
const DetailComment = ({ boardId }) => { const [newComment, setNewComment] = useState(""); const [commentArray, setCommentArray] = useState([]); const updateComment = (e) => { setNewComment(e.target.value); }; const handleSubmit = (e) => { e.preventDefault(); const currentKey = localStorage.getItem("jwt-token"); if (newComment === "") { alert("내용을 입력해주세요"); } else { axios .post( `http://3.39.223..
React
2022. 6. 16. 17:42