답변 2개
채택된 답변
+20 포인트
답변에 대한 댓글 1개
�
루2
4년 전
와 대박입니다 !
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 1개
�
루2
4년 전
posts.map(function(post,i){
return <>
<Link to=`/detail?id=${post.id}`>
<div className="post">
<figure className="thumbnail">
<img src="./img/test.jpg" alt=""/>
</figure>
<div className="text_wrap">
<p className="post_title">{post.title}</p>
<p className="post_text">{post.text}</p>
<p className="post_date">{post.date}</p>
</div>
</div>
</>
입니다
return <>
<Link to=`/detail?id=${post.id}`>
<div className="post">
<figure className="thumbnail">
<img src="./img/test.jpg" alt=""/>
</figure>
<div className="text_wrap">
<p className="post_title">{post.title}</p>
<p className="post_text">{post.text}</p>
<p className="post_date">{post.date}</p>
</div>
</div>
</>
입니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인