Implementation 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...Nov 13, 2022 · 5 min readfadilcodes.hashnode.dev
Introduction 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, ....Nov 8, 2022 · 2 min readfadilcodes.hashnode.dev
Implementation 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...Oct 31, 2022 · 20 min readfadilcodes.hashnode.dev
Implementation 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...1MOct 20, 2022 · 7 min readfadilcodes.hashnode.dev
React 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...Oct 18, 2022 · 5 min readfadilcodes.hashnode.dev