Posts in technical

React Custom Hooks for Reusable Stateful Logic

Learn how React custom hooks reuse stateful logic, follow use* naming and call rules, type inputs and results, and keep each call's state independent.

React Router Fundamentals: Routes, Links, and Params

Learn how React Router matches URLs to screens, navigates with links, reads dynamic parameters, and organizes shared layouts and route loading states.

React State with useState and TypeScript

Learn how useState snapshots work, how TypeScript infers state types, and how to update objects and arrays immutably in React components.

Sharing State and Lifting State Up in React

Learn when sibling React components need shared state, how to lift it to their nearest common owner, and why local state often beats global state.