Recipes
Short, problem-focused tutorials. Each recipe takes a real UI pattern (loading states, infinite scroll, optimistic updates) and shows how to wire it against the Go REST API. Working code, no abstractions, easy to copy into your project.
Test loading skeletons with simulated latency
Use ?delay=N to make Go REST take seconds to respond, so you can verify your skeleton screens render without flicker.
Read recipeTest 401, 422, 429 and 500 handlers
Force any status code with ?force_status= to make sure your error UI never shows blank screens or eats stack traces.
Read recipeBuild a paginated user list in React
A working component that fetches a page, renders rows, and uses X-Pagination-Pages to render Previous/Next correctly.
Read recipeBuild infinite scroll with IntersectionObserver
Append pages as the sentinel element scrolls into view. Works with any list endpoint that returns pagination headers.
Read recipeAdd optimistic updates without races
Render the new state before the server confirms; roll back on failure. Pattern works for create / update / delete.
Read recipeDebounce a search field properly
Avoid N requests per keystroke. Cancel in-flight requests with AbortController so the latest query always wins.
Read recipeMock auth for a coding interview
Stand up a fake login + protected list flow in 30 minutes - perfect for take-homes and live coding sessions.
Read recipe