#Context

2 posts

TypeScript + React in Practice #5: Context and generic components
3 min read

TypeScript + React in Practice #5: Context and generic components

Type-argument patterns for createContext, a safe useContext helper, and how to build reusable List/Select-like components with generic components.

Go Intermediate #5 context.Context in Depth
7 min read

Go Intermediate #5 context.Context in Depth

Go's standard tool for cancellation, timeouts, and request-scoped values. Why context becomes the skeleton of concurrent code.