<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/bbxfofslu" -->

---
title: Day 2 of #100DaysofCode — Understanding React State
description: React state is explained through a restaurant analogy where state represents the current order on a table. The article covers why functional components need...
canonical: https://daily.dev/posts/bbxfofslu
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Day 2 of #100DaysofCode — Understanding React State | daily.dev
og:description: React state is explained through a restaurant analogy where state represents the current order on a table. The article covers why functional components need...
og:url: https://daily.dev/posts/bbxfofslu
og:image: https://api.daily.dev/og/posts/bbxfOfsLu.png
og:image:alt: Post cover image
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.

# Day 2 of #100DaysofCode — Understanding React State

**[M Saad Ahmad](https://daily.dev/sources/1ncqeefj1ncj5ah315xrm)** · [@saad786](https://daily.dev/saad786) · 1 upvotes · 0 comments

## Summary

React state is explained through a restaurant analogy where state represents the current order on a table. The article covers why functional components need state for dynamic UIs, how state updates trigger re-renders, and why state changes are asynchronous. State enables interactivity by allowing components to respond to user actions like clicks and input, with React batching updates for performance and ensuring the UI always reflects the latest state value.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/m_saad_ahmad/day-2-of-100daysofcode-understanding-react-state-2gcp>

## Similar posts on daily.dev

- [React Basics: Interactivity and State](https://daily.dev/posts/react-basics-interactivity-and-state-ddclrvgu3) · Telerik · 1 upvotes · 0 comments
- [React for Vue Developers, 2: State, Effects, Re-renders](https://daily.dev/posts/react-for-vue-developers-2-state-effects-re-renders-lf4kx00ba) · Telerik · 13 upvotes · 1 comments
- [React Basics: Thinking in React](https://daily.dev/posts/react-basics-thinking-in-react-bxfmesfzy) · Telerik · 4 upvotes · 0 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/bbxfofslu)

```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":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/bbxfofslu","headline":"Day 2 of #100DaysofCode — Understanding React State","text":"Shared: Day 2 of #100DaysofCode — Understanding React State","url":"https://daily.dev/posts/bbxfofslu","datePublished":"2026-02-02T20:24:39.791Z","dateModified":"2026-02-02T20:25:13.644Z","author":{"@type":"Person","name":"M Saad Ahmad","url":"https://daily.dev/saad786","image":"https://media.daily.dev/image/upload/s--k0aGUCRV--/f_auto/v1745068014/avatars/avatar_1ncQEeFj1Ncj5ah315xrM","description":"Learning MERN Stack | React.js, Node.js | Building in Public","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":260}},"image":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/P15XTROgt"},"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/1ncqeefj1ncj5ah315xrm","name":"M Saad Ahmad"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"M Saad Ahmad","item":"https://daily.dev/sources/1ncqeefj1ncj5ah315xrm"},{"@type":"ListItem","position":3,"name":"Day 2 of #100DaysofCode — Understanding React State"}]}
```

