---
title: "Discussion on \"What is useState() in React?\" | Hashnode"
description: "Discussion on \"What is useState() in React?\". useState is a React Hook that lets you track data or properties in your component. \nconst [state, setState] = useState(initialState)"
url: "https://hashnode.com/posts/what-is-usestate-in-react/6357fe103b19f019d938d9f1"
---

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

Discussion

# [What is useState() in React?](https://rajamuhammadasher.com/what-is-usestate-in-react?utm_source=hashnode&utm_medium=feed)

useState is a React Hook that lets you track data or properties in your component. const \[state, setState\] = useState(initialState)

Aug 4, 2022 · 1 min read · rajamuhammadasher.com  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Raja Muhammad Asher](https://hashnode.com/@rajamuhammadasher)

@rajamuhammadasher · USA

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

Full Stack Developer

Full Stack Developer with a passion for building web applications. PHP, Node.js, Laravel, MySQL, MongoDB. Love collaborating &amp; making a difference

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
