ReactJS Design Pattern ~Colocating State~
Collocating State is placing a state as close as possible to where it's used. This pattern reduces complexity and makes components easier to understand. Before...
Collocating State is placing a state as close as possible to where it's used. This pattern reduces complexity and makes components easier to understand. Before...
Why Use localStorage with React? When you first start with React, many examples feel temporary: you refresh the page and everything disappears. Real applicatio...
TanStack Query is excellent at fetching and caching server state, but managing cache keys manually can lead to inconsistencies, scattered invalidation logic, an...
!Cover image for 🪝Finally Started the Most Awaited Section: Custom Hooks, Refs & More Statehttps://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,...
🧩 The Problem: “Why does each row see a different state?” I had a PrimeReact DataTable where each row contained a button. Clicking the buttons produced output...
In my working not theoretical understanding, object‑oriented programming is not merely an alternative to the traditional functional paradigm but often feels lik...
Forms look simple at first: inputs, errors, submit. But once you add async validation, things get messy very quickly. If you’ve worked on real‑world React apps,...
The Advanced Level of Your Tech Stack Isn’t What Users Care About Modern users evaluate an application by how it feels, not by the sophistication of its underl...
Introduction One way to improve performance and reduce unnecessary re‑renders is by lowering the state, especially if it only affects a specific part of the co...
Persisting State in React Native: Why MMKV + Zustand is the Winning Combo 🚀 If you're building React Native apps, you've probably faced the classic problem: h...
GitHub Home I remember a few years ago I was leading a team to develop a real‑time stock‑ticker dashboard. 📈 Initially, everyone's enthusiasm was incredibly h...
Problems - Too much data on the client - Overuse of useMemo - React Query becomes too complex for on‑chain fetching - Unpredictable re‑renders - Hard‑to‑mainta...