하기와 같이 console.log를 실행하면 실행되지 않습니다.
구글에 아무리 찾아봐도 잘 모르겠어서 문의 드립니다 ㅠㅠ
#cart/page.js
import { age, name } from "./data.js";
console.log("onload nextjs : ", age, name);
export default function Cart() {
return (
<div>
<h4 className="title">Cart</h4>
<CartItems></CartItems>
</div>
);
}
function CartItems() {
return (
<div className="cart-item">
<p>상품명</p>
<p>가격</p>
<p>수량</p>
</div>
);
}