CKChandra Kumarinblogs.dreamerchandra.com·Oct 4, 2025 · 2 min readMastering React Hooks: Why Order and Count MatterReact has some strict rules about how you can (and can’t) use Hooks. Break them, and React will shout at you with cryptic errors. Let’s unpack them: 🔴 Do not call Hooks inside conditions or loops. 🔴 Do not call Hooks after a conditional return s...00
CKChandra Kumarinblogs.dreamerchandra.com·Sep 29, 2025 · 3 min readAbusing Browser <> The JS VersionThe other day, I was interviewing someone for a staff engineering position, and I asked a deceptively simple question: 👉 “How would you build a countdown stopwatch that stays as accurate as a real timer?” The candidate started exploring options: set...00
CKChandra Kumarinblogs.dreamerchandra.com·Mar 18, 2023 · 3 min readHandling error cases in fetch javascriptProblem with default fetch In js, the default way to make an API call is to use fetch and the default syntax goes something like this. async function getTodos({title, id}) { let url = 'https://jsonplaceholder.typicode.com/todos' if(title){ ...00