---
title: "Discussion on \"useState &  useEffect() hook\" | Hashnode"
description: "Discussion on \"useState &  useEffect() hook\". useState() hook\nuseState() hook is a special function which takes one argument. The argument passed to useState is initial state. It returns an array of two entries. The first element is the initial state and the second is a function which is used fo..."
url: "https://hashnode.com/posts/usestate-useeffect-hook/63a895ebc590780d54022a58"
---

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

Discussion

# [useState & useEffect() hook](https://kirandebnath.io/usestate-useeffect-hook?utm_source=hashnode&utm_medium=feed)

useState() hook useState() hook is a special function which takes one argument. The argument passed to useState is initial state. It returns an array of two entries. The first element is the initial state and the second is a function which is used fo...

Dec 25, 2022 · 3 min read · kirandebnath.io  
Read the article

## Written by

[Kiran Debnath](https://hashnode.com/@Kirandebnath81)

@Kirandebnath81 · Assam, India

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

Web development

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
