FDFadil Dairoinfadilcodes.hashnode.dev·Nov 13, 2022 · 5 min readImplementation of useCallback in ReactReact's useCallback Hook can be used to optimize the rendering behavior of our React function components. We will go through an example component to illustrate the problem first, and then solve it with React's useCallback Hook. React is fast by defau...00
FDFadil Dairoinfadilcodes.hashnode.dev·Nov 8, 2022 · 2 min readIntroduction To React RefREACT USEREF HOOK: REFS React refs are strongly associated with the DOM. This has been true in the past, but not anymore since React introduced React Hooks. Ref means just reference, so it can be a reference to anything (DOM node, JavaScript value, ....00
FDFadil Dairoinfadilcodes.hashnode.dev·Oct 31, 2022 · 20 min readImplementation of React useEffect to Fetch DataIn this module, we'll learn how to fetch data in React with Hooks by using the state and effect hooks. We will use the Hacker News API to fetch popular articles from the tech world. We will also implement a custom hook for data fetching that can be r...00
FDFadil Dairoinfadilcodes.hashnode.dev·Oct 20, 2022 · 7 min readImplementation of useEffect Hook in ReactOur goal in this tutorial is to learn everything there is about the useEffect hook. We have two React components where the parent component manages the state with React's useState Hook: import * as React from "react"; import {Toggler} from "./Toggler...01M
FDFadil Dairoinfadilcodes.hashnode.dev·Oct 18, 2022 · 5 min readReact useEffect HookReact's useEffect hook allows us to perform side effects in our components. The useEffect hook is often used for interactions with the Browser/DOM API or external API like data fetching. I'll demonstrate how the useEffect hook is used for interaction...00