---
title: "Discussion on \"React Hooks Masterclass: useState, useEffect, and Custom Hooks\" | Hashnode"
description: "Discussion on \"React Hooks Masterclass: useState, useEffect, and Custom Hooks\". Introduction\nHow does React remember information between renders?\nImagine clicking a button that increases a counter. The component function runs again after every click, yet React somehow remembers t"
url: "https://hashnode.com/posts/react-hooks-masterclass-usestate-useeffect-and-custom-hooks/6a51108d7ab23ebec19ea26b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [React Hooks Masterclass: useState, useEffect, and Custom Hooks](https://nodej.hashnode.dev/react-hooks-masterclass-usestate-useeffect-and-custom-hooks?utm_source=hashnode&utm_medium=feed)

Introduction How does React remember information between renders? Imagine clicking a button that increases a counter. The component function runs again after every click, yet React somehow remembers t

Jul 10 · 11 min read · nodej.hashnode.dev  
Updated Aug 12  
Read the article

-   [#react-js](https://hashnode.com/tag/react-js)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#react](https://hashnode.com/tag/react)
-   [#hooks](https://hashnode.com/tag/hooks)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)
-   [#masterclass](https://hashnode.com/tag/masterclass)
-   [#usestate](https://hashnode.com/tag/usestate)
-   [#useeffect](https://hashnode.com/tag/useeffect)
-   [#custom](https://hashnode.com/tag/custom)
-   [#customhooks](https://hashnode.com/tag/customhooks)
-   [#web](https://hashnode.com/tag/web)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#webdevelopment](https://hashnode.com/tag/webdevelopment)
-   [#webdevcohort2026](https://hashnode.com/tag/webdevcohort2026)
-   [#development](https://hashnode.com/tag/development)
-   [#full-stack](https://hashnode.com/tag/full-stack)
-   [#full-stack-development](https://hashnode.com/tag/full-stack-development)
-   [#fullstack](https://hashnode.com/tag/fullstack)
-   [#chai](https://hashnode.com/tag/chai)
-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chaiaurcode](https://hashnode.com/tag/chaiaurcode)
-   [#chaicohort](https://hashnode.com/tag/chaicohort)
-   [#cohort](https://hashnode.com/tag/cohort)
-   [#cohort2026](https://hashnode.com/tag/cohort2026)
-   [#chaiaurcode-hiteshchoudhary-piyushgarg-genaicohort-genai-llm-personaprompting-geminiai-reactjs-nextjs-python-aichatbot-hashnode-promptengineering-vercel-hindienglishblog-devjourney](https://hashnode.com/tag/chaiaurcode-hiteshchoudhary-piyushgarg-genaicohort-genai-llm-personaprompting-geminiai-reactjs-nextjs-python-aichatbot-hashnode-promptengineering-vercel-hindienglishblog-devjourney)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#developer-tools](https://hashnode.com/tag/developer-tools)
-   [#development-tools](https://hashnode.com/tag/development-tools)
-   [#blog](https://hashnode.com/tag/blog)
-   [#blogswithcc](https://hashnode.com/tag/blogswithcc)
-   [#blogging](https://hashnode.com/tag/blogging)

## Written by

[Kanishka Shashi](https://hashnode.com/@Kshashi22)

@Kshashi22 · Greater Noida, Gautam Buddha Nagar, Uttar Pradesh, IND

  
[View profile](https://hashnode.com/@Kshashi22)

Kshashi22

Hi, I'm Kanishka Shashi. I'm a Computer Science (AI &amp; ML) student passionate about building, analyzing, and explaining technology. This blog is where I simplify complex concepts into practical, beginner-friendly guides. You'll find articles on Web Development, System Design, AI &amp; LLMs, Data Analytics, SQL, Git/GitHub, and software engineering best practices. I enjoy exploring how modern technologies work under the hood and sharing insights through real-world examples and hands-on projects. Whether you're a student, developer, or tech enthusiast, I hope these articles help you learn something new and build better software. Learning in public. Building consistently. Sharing everything I discover.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
