더보기버튼 관련 질문있습니다
clothes변경([...clothes,...result.data])
이렇게 넣으면 버튼클릭시 잘동작합니다
var 새데이터=[...clothes];
새데이터.push(result);
clothes변경(새데이터);
이렇게 작성시 누를때마다 사진만 한개씩 나옵니다 content나 title은 나오지않습니다
function Content(props){
return(
<div className="col-md-4">{props.clothes.title}
<img src={'https://codingapple1.github.io/shop/shoes'+(props.i+1)+'.jpg'} width="100%" />
<p>
{props.clothes.content}
</p>
</div>
)
}