---
title: "Discussion on \"React   useState()\" | Hashnode"
description: "Discussion on \"React   useState()\". What is useState hook?\nuseState is a react hook which is used to add a state variable to our components. It means that we can now declare state variables to functional components.\nSyntax to declare useState hook\nconst [state, setState] = useState('In..."
url: "https://hashnode.com/posts/react-usestate/639c9ed2db05f81e286c08c1"
---

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

Discussion

# [React useState()](https://shubhamaher.hashnode.dev/react-usestate?utm_source=hashnode&utm_medium=feed)

What is useState hook? useState is a react hook which is used to add a state variable to our components. It means that we can now declare state variables to functional components. Syntax to declare useState hook const \[state, setState\] = useState('In...

Dec 16, 2022 · 2 min read · shubhamaher.hashnode.dev  
Read the article

-   [#iwritecode](https://hashnode.com/tag/iwritecode)
-   [#ineuron-hiteshchaudhary-webdev-javascript-lco-learncodeonline-lco-css-learncodeonline-cssselectors-hiteshchoudharylco-code-with-hitesh-choudhary](https://hashnode.com/tag/ineuron-hiteshchaudhary-webdev-javascript-lco-learncodeonline-lco-css-learncodeonline-cssselectors-hiteshchoudharylco-code-with-hitesh-choudhary)

## Written by

[Shubham Aher](https://hashnode.com/@Shubham432000)

@Shubham432000

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
