---
title: "Discussion on \"Using React setState() with prevState\" | Hashnode"
description: "Discussion on \"Using React setState() with prevState\". A better way of using the useState() hook with the prevState in React JS ⚛"
url: "https://hashnode.com/posts/using-react-setstate-with-prevstate/6248424416cdedfe9f7cd11f"
---

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

Discussion

# [Using React setState() with prevState](https://devyoma.hashnode.dev/using-react-setstate-with-prevstate?utm_source=hashnode&utm_medium=feed)

A better way of using the useState() hook with the prevState in React JS ⚛

Apr 2, 2022 · 4 min read · devyoma.hashnode.dev  
Updated Feb 10, 2024  
Read the article

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

## Written by

[Emore Ogheneyoma Lawrence](https://hashnode.com/@Yoma)

@Yoma · Nigeria

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

FrontEnd React JS Developer || Open Source Lover || Building Products

FrontEnd React JS Developer || Open Source Lover || Building Products

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
