import / export 파트에서 data.js파일에
export default[
{
id : 0,
title : "White and Black",
content : "Born in France",
price : 120000
},
{
id : 1,
title : "Red Knit",
content : "Born in Seoul",
price : 110000
},
{
id : 2,
title : "Grey Yordan",
content : "Born in the States",
price : 130000
},
]
작성하면 Assign array to a variable before exporting as module default라는 문제가 발생 하면서 App.js 파일에서 데이터바인딩이 안됩니다. 왜그럴까요?