JSX 반복하기
반복되는 데이터를 JSX 내부에서 map을 사용해서 보여주도록 수정했다.
const arr=[1,2,3,4,5] return( { arr.map((item)=>{ return(<div>{item}</div>) }) } )
📌 참고자료 https://cocoon1787.tistory.com/772