coryhouse / coryhouse/react-restaurant-scriptpro

Add food detail route with useEffect + useState

Open
#13 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
Add a food detail route at `/menu/$foodId` that fetches a single food, handles loading, error, and 404 states using the same manual `useEffect` + `useState` pattern.

## Acceptance criteria
- [ ] Route fetches food by id with `useEffect`
- [ ] Loading and error states handled with `useState`
- [ ] Unknown id renders a clear 404 message
- [ ] Detail page shows name, full description, tags, price, image

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the `/menu/$foodId` route entry and inspect the existing menu and data-fetching patterns. Done means the route fetches one food by id, shows loading, error, and clear 404 states, and renders its name, full description, tags, price, and image.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.