---
title: "Discussion on \"MERN stack:How to use UseState in the functional components and how to use the previous state object in the state method\" | Hashnode"
description: "Discussion on \"MERN stack:How to use UseState in the functional components and how to use the previous state object in the state method\". Hey I am deep shah.I am MERN stack Enthusiast.\nSo let's talk about useState Hook\nWhat are hooks?\n=>\nWith the help of hooks code can seem more declarative and also  no branches ..so it's easier to follow.\n\nHooks let you always use functions instead of..."
url: "https://hashnode.com/posts/mern-stackhow-to-use-usestate-in-the-functional-components-and-how-to-use-the-previous-state-object-in-the-state-method/60617d785aa4944ee40faee3"
---

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

Discussion

# [MERN stack:How to use UseState in the functional components and how to use the previous state object in the state method](https://deepshah1309.hashnode.dev/mern-stackhow-to-use-usestate-in-the-functional-components-and-how-to-use-the-previous-state-object-in-the-state-method?utm_source=hashnode&utm_medium=feed)

Hey I am deep shah.I am MERN stack Enthusiast. So let's talk about useState Hook What are hooks? => With the help of hooks code can seem more declarative and also no branches ..so it's easier to follow. Hooks let you always use functions instead of...

Mar 29, 2021 · 2 min read · deepshah1309.hashnode.dev  
Read the article

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

## Written by

[shah deep](https://hashnode.com/@deepshah1309)

@deepshah1309

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

MERN stack Enthusiast

## Responses

Comments are turned off for this post.
