読み方のヒント
矢印ボタン(または ← → キー)でページを移動できます。
アプリのフォルダは、次のようになりました。
src/
app/
layout.tsx
page.tsx
products/
page.tsx
[id]/
page.tsx
not-found.tsx
actions.ts
reserve/done/page.tsx
admin/
layout.tsx
reservations/
page.tsx
actions.ts
components/
SiteHeader.tsx
MenuToggle.tsx
QuantityPicker.tsx
ReserveForm.tsx
PickUpButton.tsx
lib/
products.ts
reservations.ts
stock.ts
proxy.ts
| 場所 | 中身 | 動く場所 |
|---|---|---|
app/**/page.tsx・layout.tsx | ページと外枠 | サーバー |
app/**/actions.ts | Server Actions | サーバー |
components/("use client") | 操作に応える部品 | サーバーとブラウザ |
lib/ | データの読み書き | サーバー |
proxy.ts | ページの前の確かめ | サーバー |
16 / 18