coryhouse / coryhouse/react-restaurant-scriptpro

Render menu page with useEffect + useState

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
enhancement phase-2-fetching
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Goal
Render a menu page that fetches foods inside `useEffect`, manages `loading` / `error` / `data` state with `useState`, and displays cards in a responsive grid. This is the naive-fetching baseline before introducing TanStack Query — students should feel the boilerplate first.

## Acceptance criteria
- [ ] `/menu` route fetches foods on mount with `useEffect`
- [ ] Loading state shows the `Spinner`
- [ ] Error state shows a clear message
- [ ] Foods render as a responsive grid of `FoodCard`s
- [ ] Playwright test verifies the menu loads and renders multiple cards

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.