Adrian Garzausestating-the-obvious.hashnode.dev·Jan 20, 2025useStating the obviousUsing useState in React was probably was one of the most difficult concepts to wrap my head around when learning React. Here, I will do my best to explain useState the way I understand it and how to implement it. State is typically used when somethin...JavaScript
Gabriellegrodarte.hashnode.dev·Jan 10, 2025Understanding React State: Managing Dynamic DataReact components have a built-in state object that determines how they behave. This object can be used to store the component’s dynamic information or data, allowing changes over time. Let’s explore what this means in practice! Triggering Changes wit...Software Engineering
Sahana G Sreactjsbasics.hashnode.dev·Dec 25, 2024Understanding React's useState: A Complete WalkthroughThe useState hook is one of the most fundamental and widely used hooks in React, enabling developers to manage state in functional components. Introduced in React 16.8, it eliminates the need for class components when working with local component sta...useState hook
PurnaChandra Bandarupurnadevdocs.hashnode.dev·Dec 18, 2024Understanding the useState Hook in ReactHey everyone! Today, let’s dive into one of the most important concepts in React — the useState hook. If you've ever wondered how websites remember your clicks, update numbers on the screen, or toggle between light and dark mode, it’s all thanks to s...46 readsReact
Ujjwal Karujjwalkar.hashnode.dev·Nov 26, 2024Avoid this 10 common mistakes React Developers while writing useState.In this simple guide, we dive into the useState hook in React and identify the 10 most frequent mistakes developers encounter. Whether you’re experienced or just starting, knowing these mistakes can help you write better code. From setting up useStat...Frontend DevelopmentReact Native
harshad dhongadereactinstall.hashnode.dev·Oct 26, 2024A Complete Guide to React Hooks: Everything You Need to KnowIntroduction to React Hooks React Hooks, introduced in version 16.8, transformed the way we manage state and lifecycle in functional components. Before their arrival, class components were the go-to for handling these features, often resulting in mor...1 likeReact Functional Components
Buddhabuds.hashnode.dev·Aug 27, 2024Understanding React's useState and useEffect hooksReact is one of the most popular JavaScript libraries for building user interfaces.managing state and side effects in functional components became much easier and more intuitive. In this blog, we'll dive into two essential hooks: useState and useEffe...React
Rudraksh Tripathihustlecoder.hashnode.dev·Jul 19, 2024Building a Currency converter using ReactLearning to create a custom hook import {useEffect, useState} from "react" function useCurrencyInfo(currency){ const [data, setData] = useState({}) useEffect(() => { fetch(`https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@late...useState hook
Piyushpiyusss.hashnode.dev·Apr 24, 2024React with meDay 2 Today I Created my first React Project called Counter where I used my first hook "UseState" for it. Also you cannot use return counter and increment or decrement on mouse click. You'll have to use hooks for the changes so it will be shown in th...React
Abhrajit Guptaabhrajitgupta.hashnode.dev·Mar 28, 2024Hooks in ReactIn the 16.8 version of React, Hooks are introduced to developers. When you are building a react application, you require manipulating with the states of your websites in majority cases. Before hooks, only class components could manage state. If you h...19 likes·110 readsReact