coryhouse / coryhouse/react-restaurant-scriptpro
Render menu page with useEffect + useState
- 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.