답글 감사합니다 ㅠㅠ
오브젝자료를 꺼내서 쓰고싶은데 어떤식으로 빼서 쓰는게 나을까요 반복문으로 돌릴려고 해도 배열과 달라서 자꾸 에러가 나네요
const [detailPost,setDetailPost] = useState([]) =====유즈파람스와 엑시오스로 받아은 값을 여기에 넣었습니다!
배열이라면 그냥 반복문 돌리면 되는데 객체라서 어떤식으로 해야할지 모르겠습니다
for (const name in detailPosts){
console.log(name,detailPosts[name])
}
이렇게 하는건 아니죠???