SDSanket Dhabardeinsanketdhabarde.hashnode.dev路May 13, 2022 路 5 min readPromises in JavaScript馃搼 Prerequisites Basics of JavaScript 馃 What is the promise in JavaScript? The promise is the object we used for the asynchronous task. it gives us the idea that either our asynchronous task is successful or failed. The promise has 3 states: Pend...00
SDSanket Dhabardeinsanketdhabarde.hashnode.dev路May 11, 2022 路 4 min readuseRef hook in React馃搼 Prerequisites Basics of react hooks Basics of JavaScript 馃 What is useRef? useRef is the react hook that let you store the reference value which will not change due to component re-render. The syntax of useRef is: const ref = useRef(initialValu...01P
SDSanket Dhabardeinsanketdhabarde.hashnode.dev路Mar 5, 2022 路 5 min readuseContext in react馃摉 Prerequisites Hooks in react Basics of react 馃悂 prop drilling Before diving into the useContext we need to know why we are using the context? what problem does it solve? Suppose your component tree look like this <GreatGrandParent> <GrandP...03PSA
SDSanket Dhabardeinsanketdhabarde.hashnode.dev路Jul 28, 2021 路 5 min readObjects: the basicsIn this article, we are going to cover: Object creation Literal and properties Square brackets Computed properties "in" operator "for...in" loop Object reference As we know that there are 8 types of Data Types in Javascript: number bigint string ...00
SDSanket Dhabardeinsanketdhabarde.hashnode.dev路Jun 22, 2021 路 4 min readPolyfill for bind() methodIn this article, we are going to cover: What is polyfill? How to write our own polyfill for bind()? What is polyfill? According to MDN docs: A polyfill is a piece of code (usually JavaScript on the Web) used to provide modern functionality on old...00