読み方のヒント

矢印ボタン(または ← → キー)でページを移動できます。

第4節 カリキュラムのふり返り

4.1 作ったものの全体

アプリのフォルダは、次のようになりました。

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.tsServer Actionsサーバー
components/("use client")操作に応える部品サーバーとブラウザ
lib/データの読み書きサーバー
proxy.tsページの前の確かめサーバー

16 / 18