---
title: "Discussion on \"useState() like a Pro ✨\" | Hashnode"
description: "Discussion on \"useState() like a Pro ✨\". This blog post covers all you need to know about the concept of a state and react useState hook from basics to advanced patterns."
url: "https://hashnode.com/posts/usestate-like-a-pro/601e598a072bc516ff6f4e9c"
---

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

Discussion

# [useState() like a Pro ✨](https://shubhs.hashnode.dev/usestate-like-a-pro?utm_source=hashnode&utm_medium=feed)

This blog post covers all you need to know about the concept of a state and react useState hook from basics to advanced patterns.

Feb 6, 2021 · 8 min read · shubhs.hashnode.dev  
Updated Feb 13, 2021  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#learning](https://hashnode.com/tag/learning)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#frontend](https://hashnode.com/tag/frontend)

## Written by

[Shubham Sananse](https://hashnode.com/@shubham-sns)

@shubham-sns · Gujarat, India

  
[View profile](https://hashnode.com/@shubham-sns)

React Developer

## Responses 7

Markdown supported · ⌘↵ to post

[Jay Panchal](https://hashnode.com/@jaypnchl)

[May 25, 2021](https://hashnode.com/posts/usestate-like-a-pro/601e598a072bc516ff6f4e9c/comment/60ad181661f5f47b572b808e)

Aa to vachelo che. Maal lakhyo

[Rhythm Jayee](https://hashnode.com/@rhythmjayee)

[Feb 10, 2021](https://hashnode.com/posts/usestate-like-a-pro/601e598a072bc516ff6f4e9c/comment/6023ed1f50d5e944c5d47076)

Pls make the same post about different hooks also

[Shubham Sananse](https://hashnode.com/@shubham-sns)

[Feb 10, 2021](https://hashnode.com/posts/usestate-like-a-pro/601e598a072bc516ff6f4e9c/comment/6023ed1f50d5e944c5d47076#reply-60241ff180da6c44eadf75a0)

Would try my best :)

[Brandon Damue](https://hashnode.com/@brandondamue)

[Feb 10, 2021](https://hashnode.com/posts/usestate-like-a-pro/601e598a072bc516ff6f4e9c/comment/60232c933f7a783c6be41757)

Great article. 👍🏽

[Bhargav Ponnapalli](https://hashnode.com/@codewithbhargav)

[Feb 6, 2021](https://hashnode.com/posts/usestate-like-a-pro/601e598a072bc516ff6f4e9c/comment/601ec8491054fa16dadd92c4)

Solid article! [Shubham Sananse](https://hashnode.com/@shubham-sns)

[Shubham Sananse](https://hashnode.com/@shubham-sns)

[Feb 7, 2021](https://hashnode.com/posts/usestate-like-a-pro/601e598a072bc516ff6f4e9c/comment/601ec8491054fa16dadd92c4#reply-601f9874636acc2a3822f2a4)

thanks :)

[Dhwaj Sharma](https://hashnode.com/@dhwajsharma)

[Feb 6, 2021](https://hashnode.com/posts/usestate-like-a-pro/601e598a072bc516ff6f4e9c/comment/601ea88e072bc516ff6f55f9)

Pretty nice

[Usman Sabuwala](https://hashnode.com/@usmanwrites)

[Feb 6, 2021](https://hashnode.com/posts/usestate-like-a-pro/601e598a072bc516ff6f4e9c/comment/601e9d6d1054fa16dadd8e54)

Wonderful Shubham! I understood some of my mistakes I did. The way you present things is very catchy 👍

[Shubham Sananse](https://hashnode.com/@shubham-sns)

[Feb 7, 2021](https://hashnode.com/posts/usestate-like-a-pro/601e598a072bc516ff6f4e9c/comment/601e9d6d1054fa16dadd8e54#reply-601f9884636acc2a3822f2a8)

I am glad it helped you :)

[Peter Singh](https://hashnode.com/@aFuzzyBear)

[Feb 6, 2021](https://hashnode.com/posts/usestate-like-a-pro/601e598a072bc516ff6f4e9c/comment/601e95bf072bc516ff6f52c1)

nice article man, I am just learning react atm, and I kinda have a smaller more easier understanding to this. If you are familiar with 'getters' and 'setters' its pretty much that. just, the `useState(<value>)` is the function which we are passing in the values to. the first one being the state we wish to affect and the second being a setter method for that namespaced state so we can affect its value...`const [value,setValue] = setState(<default value>)` If I am wrong please let me know. Nothing worse that thinking something to be right when it was wrong in the first place.

[Shubham Sananse](https://hashnode.com/@shubham-sns)

[Feb 7, 2021](https://hashnode.com/posts/usestate-like-a-pro/601e598a072bc516ff6f4e9c/comment/601e95bf072bc516ff6f52c1#reply-601f997c0da0382a2d49ce2b)

nicely put , getters and setters concept will easily connect some missing dots for someone who's starting. Thanks for sharing your thoughts.

[Peter Singh](https://hashnode.com/@aFuzzyBear)

[Feb 7, 2021](https://hashnode.com/posts/usestate-like-a-pro/601e598a072bc516ff6f4e9c/comment/601e95bf072bc516ff6f52c1#reply-601febf50da0382a2d49d564)

Thanks man, take care[Shubham Sananse](https://hashnode.com/@shubham-sns)
