---
title: "Discussion on \"useState and useEffect hook. What are hooks and how do we use useState and useEffect hook?\" | Hashnode"
description: "Discussion on \"useState and useEffect hook. What are hooks and how do we use useState and useEffect hook?\". Why we should use hooks?\nHooks are a way to manage state logic in functional components. They allow you to reuse stateful logic between components and can make it easier to test components.\nSome benefits of using hooks:\n\nWith hooks, you can use funct..."
url: "https://hashnode.com/posts/usestate-and-useeffect-hook-what-are-hooks-and-how-do-we-use-usestate-and-useeffect-hook/63bc116f796109f9c77eaf45"
---

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

Discussion

# [useState and useEffect hook. What are hooks and how do we use useState and useEffect hook?](https://somidhroy.hashnode.dev/usestate-and-useeffect-hook-what-are-hooks-and-how-do-we-use-usestate-and-useeffect-hook?utm_source=hashnode&utm_medium=feed)

Why we should use hooks? Hooks are a way to manage state logic in functional components. They allow you to reuse stateful logic between components and can make it easier to test components. Some benefits of using hooks: With hooks, you can use funct...

Jan 9, 2023 · 4 min read · somidhroy.hashnode.dev  
Read the article

-   [#react-hooks](https://hashnode.com/tag/react-hooks)
-   [#usestate](https://hashnode.com/tag/usestate)
-   [#useeffect](https://hashnode.com/tag/useeffect)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#wemakedevs](https://hashnode.com/tag/wemakedevs)

## Written by

[Somidh Roy](https://hashnode.com/@Somidh)

@Somidh · Indore, India

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

Student

I am learning frontend development

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
