RReactUseinreactuse.hashnode.dev·1d ago · 10 min readReact useEvent Hook: Stable Callbacks Without Stale Closures (2026)Every React developer eventually meets the same fork in the road. You write an event handler that reads state, pass it to a child or an effect, and now you must choose: leave it as a plain inline func00
RReactUseinreactuse.hashnode.dev·2d ago · 12 min readBarrel Files: Why index.ts Re-Exports Hurt Tree Shaking, Next.js Dev Memory, and tsc (2026)Barrel Files: Why index.ts Re-Exports Hurt Tree Shaking, Next.js Dev Memory, and tsc (2026) A barrel file is an index.ts whose only job is to re-export other modules, so consumers can write one tidy i00
RReactUseinreactuse.hashnode.dev·3d ago · 10 min readReact useMeasure Hook: Measure DOM Elements with ResizeObserver (2026)React useMeasure Hook: Measure DOM Elements with ResizeObserver (2026) Sooner or later every React app needs to know how big an element is. A chart needs its container's pixel width before it can draw00
RReactUseinreactuse.hashnode.dev·4d ago · 6 min readReact useDisclosure Hook: Manage Modal & Drawer State (2026)React useDisclosure Hook: Manage Modal & Drawer State (2026) Every React app accumulates toggleable UI — a confirmation dialog, a mobile nav drawer, a settings popover, a notification panel. The state00
RReactUseinreactuse.hashnode.dev·5d ago · 8 min readReact useInfiniteScroll Hook: Infinite Scrolling Made Simple (2026)React useInfiniteScroll Hook: Infinite Scrolling Made Simple (2026) Every feed, every chat log, every search result page eventually asks the same question: how do I load more when the user reaches the00