---
title: "Discussion on \"setState : Under the hood\" | Hashnode"
description: "Discussion on \"setState : Under the hood\". setState is a method used in React to update the state of a component. When setState is called, React re-renders the component and its children, reflecting the updated state.\nHere's a detailed explanation of what happens under the hood when setState ..."
url: "https://hashnode.com/posts/setstate-under-the-hood/64a4217dcdea1150d9b03c49"
---

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

Discussion

# [setState : Under the hood](https://chhavi-rana.hashnode.dev/setstate-under-the-hood?utm_source=hashnode&utm_medium=feed)

setState is a method used in React to update the state of a component. When setState is called, React re-renders the component and its children, reflecting the updated state. Here's a detailed explanation of what happens under the hood when setState ...

Jul 4, 2023 · 2 min read · chhavi-rana.hashnode.dev  
Read the article

-   [#setstate](https://hashnode.com/tag/setstate)
-   [#usestate](https://hashnode.com/tag/usestate)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#usestate-hook](https://hashnode.com/tag/usestate-hook)
-   [#set-state-call-back](https://hashnode.com/tag/set-state-call-back)

## Written by

[Chhavi Rana](https://hashnode.com/@chhavi-rana)

@chhavi-rana

  
[View profile](https://hashnode.com/@chhavi-rana)

Do what Excites

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
