RReactUseinreactuse.hashnode.dev·15h ago · 10 min readReact useEventSource Hook: Server-Sent Events with Auto-Reconnect (2026)React useEventSource Hook: Server-Sent Events with Auto-Reconnect (2026) Live notifications, deployment logs, stock tickers, AI responses streaming in token by token — none of these need a WebSocket. 00
RReactUseinreactuse.hashnode.dev·1d ago · 9 min readReact useMount Hook: Run an Effect Once on Mount (2026)"Run this once, when the component appears." It's the single most common effect in React — focus an input, fire an analytics event, open a connection, read from a browser API. The idiom everyone reach00
RReactUseinreactuse.hashnode.dev·5d 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·6d 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·Aug 5 · 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