Build a type-safe API client with TypeScript and Zod
TypeScript types disappear at runtime. Here is how to validate API responses so a bad payload fails loudly at the edge instead of deep in your UI.
3 min readTutorial
TypeScript types disappear at runtime. Here is how to validate API responses so a bad payload fails loudly at the edge instead of deep in your UI.
Rebase gives you a clean, readable history. Learn the three situations where you will use it, and the one rule that keeps you safe.
Most of what we call state is really server data or the URL. Sort those out first and the remaining state is small enough for React itself.
Fire one request when the user stops typing, not one per keystroke. A small hook, plus the cancellation detail most examples skip.