상품 목록 페이지
상품 목록
- ProductListPage.tsx
- useFetchProducts.ts // 👈🏻 store로 부터 상품 목록 얻어 반환
- ProductsStore.ts // 👈🏻 store 생성
- ApiService.ts // 👈🏻 API 호출 모아서 관리하는 파일
- Products.tsx // 👈🏻 상품 목록 리스트
- Product.tsx // 👈🏻 개별 상품
- numberFormat.ts // 👈🏻 유틸리티 함수ProductListPage.tsx
ProductListPage.tsxuseFetchProducts.ts
useFetchProducts.tsProductsStore.ts
ProductsStore.tsApiService.ts
ApiService.tsProducts.tsx
Products.tsxProduct.tsx
Product.tsxnumberFormat.ts
numberFormat.ts📖 Intl
카테고리 목록
카테고리별 상품 목록
카테고리 ID를 얻기 위해 useSearchParams hooks 사용
useSearchParams hooks 사용전달받은 categoryId 사용하도록 변경
🔗 참고
Last updated