PKpushpesh kumarinpushpesh-js-articles.hashnode.dev·Aug 5 · 5 min readDemystifying JavaScript Promises: From Network Cables to fetch and AxiosAs a frontend developer, you will spend 95% of your time consuming promises rather than creating them. But when you are waiting for data from a backend service—like an API written in Java, Python, or 00
PKpushpesh kumarinpushpesh-js-articles.hashnode.dev·Jul 29 · 3 min readJSON.parse() vs JSON.stringify()JSON.parse() and JSON.stringify() are complementary functions in JavaScript that convert data between JSON text and JavaScript objects. Think of them as opposite operations: JavaScript Object --string00
PKpushpesh kumarinpushpesh-js-articles.hashnode.dev·Jun 9 · 5 min readReact Context API🚀 What is Context API? The Context API is a built-in React feature that allows you to share data globally across components without passing props manually at every level. 👉 It solves the problem of 00
PKpushpesh kumarinpushpesh-js-articles.hashnode.dev·Jun 9 · 4 min readData flow advanced patternsWe’ll cover 3 important patterns: ✅ Controlled Components (Forms) ✅ Callback Pattern (Child → Parent communication) ✅ Context API (avoid prop drilling completely) ✅ 1. Controlled Components (For00
PKpushpesh kumarinpushpesh-js-articles.hashnode.dev·Jun 9 · 5 min readData flow mental map in React🧠 1. The Core Decision Rule (Golden Rule) Whenever you're building something, ask: 👉 “Who owns this data?” That determines everything. ✅ 2. When to Send Data (Parent → Child) ✔ Use this when: Chil00