React
React patterns, hooks, component composition, performance optimization, and state management.
Topics
All29 entries
Higher-Order Components and Why Hooks Replaced ThemPure Components and Why Purity Matters in ReactReact Fragments and When You Actually Need ThemRefs and when useRef beats useStateDefault Props and Optional Props in ReactHandling Form Submission in ReactThe Compound Component Pattern in ReactThe Render Prop Pattern in ReactuseReducer for Complex StateThe React Context API: Shared State Without a LibraryLifting State Up in ReactConditional Rendering Patterns in ReactLists and Keys in React: Why They Actually MatterEvent Handling in ReactProps, Children, and Component Composition in ReactThe Virtual DOM and How React Reconciliation WorksuseState and the Mental Model of StateAvoiding Unnecessary Rerenders in ReactComposition Over Prop Drilling in ReactControlled vs Uncontrolled Forms in ReactCustom Hooks: Naming and StructureReact Error Boundaries in PracticeReact Server Components vs Client ComponentsState Management Without ReduxStructuring Large React AppsTesting React Components with Vitest and Testing LibraryThe React Suspense Mental ModeluseEffect Mistakes I Stopped MakingWhen to Use useMemo and useCallback