






{state.prevNum !== 0 ? <Link to={`/posts/${state.prevNum}${params.get("condition") && "?" + new URLSearchParams(params).toString() }`}>이전글</Link> : "" }
{state.nextNum !== 0 ? <Link to={`/posts/${state.nextNum}${params.get("condition") && "?" + new URLSearchParams(params).toString() }`}>다음글</Link> : "" }






https://velog.io/@grh0916/310#pirvate-%ED%95%9C-css-%EC%83%9D%EC%84%B1%EB%B0%A9%EB%B2%95





동적 파라미터 추가 시 router 의 path ": 파라미터명 " 작성하기

동작 여러개를 동시에 실행할 수 있다의 의미
//예시코드 const [postRes, commentsRes] = await Promise.all([ axios.get(`/posts/${postId}`), // 게시글 데이터 요청 axios.get(`/posts/${postId}/comments`) // 댓글 데이터 요청 ]);


스마티에디터 1. 렌더링 시 초기화 작업 2. 서버 전송 시 textarea 의 value 로 변경


input 요소에 ref 라는 값을 제어할 수 있는 공간이 생겼다.