coryhouse / coryhouse/react-restaurant-scriptpro
Demonstrate the use() hook
Open
enhancement
phase-8-resilience
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## Goal
Demonstrate React 19's `use()` hook by reading either a Promise (inside a Suspense boundary) or a Context (like `CartContext`) with `use()` in a real component.
## Acceptance criteria
- [ ] `use()` reads either a Promise or Context in a real component
- [ ] If reading a Promise, it is rendered inside a Suspense boundary
- [ ] PR description explains the conceptual difference between `use()` and `useContext` / `useQuery`
- [ ] Behavior verified in the running app
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.