<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/react-projects-and-state-management-vmnv6fksy" -->

---
title: React Projects and State management | daily.dev
description: Learn about the useState hook in React, its usage in applications, and best practices for using it. Discover how the useState hook can help manage and update...
canonical: https://daily.dev/posts/react-projects-and-state-management-vmnv6fksy
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: React Projects and State management | daily.dev
og:description: Learn about the useState hook in React, its usage in applications, and best practices for using it. Discover how the useState hook can help manage and update...
og:url: https://daily.dev/posts/react-projects-and-state-management-vmnv6fksy
og:image: https://api.daily.dev/og/posts/VMnv6fkSy.png
og:image:alt: React Projects and State management
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# React Projects and State management

**[Medium](https://daily.dev/sources/medium_js)** · 3 min read · 107 upvotes · 4 comments

## Summary

Learn about the useState hook in React, its usage in applications, and best practices for using it. Discover how the useState hook can help manage and update data in your projects.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/@nwokichaamarachi/react-projects-and-state-management-65d68e852d55>

## Community discussion

Top comments from developers on daily.dev.

**@fssshy** · 1 upvotes

> In the past few years I've just used useState for local state, and any network requests I've just used react-query. Seems a good way to not get bogged down with global state too much. If any global state is needed which can't be handled by react-query then I just use context in that case.

**@talha1729** · 0 upvotes

> Thanks ❤️

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#react](https://daily.dev/tags/react), [#react-hooks](https://daily.dev/tags/react-hooks)

[View this post on daily.dev](https://daily.dev/posts/react-projects-and-state-management-vmnv6fksy)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"React Projects and State management","url":"https://daily.dev/posts/react-projects-and-state-management-vmnv6fksy","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/react-projects-and-state-management-vmnv6fksy"},"datePublished":"2024-06-13T12:45:25.530Z","dateModified":"2024-08-23T15:25:05.138Z","description":"Learn about the useState hook in React, its usage in applications, and best practices for using it. Discover how the useState hook can help manage and update...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f6c0d1245e4723fe2d47ee663b47abd0?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f6c0d1245e4723fe2d47ee663b47abd0?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Medium","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":4,"discussionUrl":"https://daily.dev/posts/react-projects-and-state-management-vmnv6fksy","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":107},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":4}],"keywords":"javascript,react,react-hooks","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"React Projects and State management"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/react-projects-and-state-management-vmnv6fksy","comment":[{"@type":"Comment","text":"In the past few years I’ve just used useState for local state, and any network requests I’ve just used react-query. Seems a good way to not get bogged down with global state too much. If any global state is needed which can’t be handled by react-query then I just use context in that case.","datePublished":"2024-06-13T15:52:57.522Z","url":"https://daily.dev/posts/VMnv6fkSy#c-w6PaYYSRU","author":{"@type":"Person","name":"Chris Golding","url":"https://daily.dev/fssshy","image":"https://avatars.githubusercontent.com/u/20902874?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Thanks ❤️","datePublished":"2024-09-09T03:13:28.266Z","url":"https://daily.dev/posts/VMnv6fkSy#c-MX2rr7kO9","author":{"@type":"Person","name":"Muhammad Talha","url":"https://daily.dev/talha1729","image":"https://media.daily.dev/image/upload/s--VmT7ApBH--/f_auto/v1725853883/avatars/avatar_MmK1EOmWnWYfXndk8Hhqy"}}]}
```

