---
title: "Discussion on \"Variables vs. State in React.js: Why State Rules the UI 👑\" | Hashnode"
description: "Discussion on \"Variables vs. State in React.js: Why State Rules the UI 👑\". If you've spent any time learning React.js, you've likely encountered the concept of state. It’s one of the framework's fundamental building blocks, but it often brings up a basic question: Why can't I just use a regular JavaScript variable?\nWhile a ..."
url: "https://hashnode.com/posts/variables-vs-state-in-reactjs-why-state-rules-the-ui/63da6344cb379d19055a4f64"
---

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

Discussion

# [Variables vs. State in React.js: Why State Rules the UI 👑](https://blog.theabgarg.com/variables-vs-state-in-reactjs-why-state-rules-the-ui?utm_source=hashnode&utm_medium=feed)

If you've spent any time learning React.js, you've likely encountered the concept of state. It’s one of the framework's fundamental building blocks, but it often brings up a basic question: Why can't I just use a regular JavaScript variable? While a ...

Feb 1, 2023 · 3 min read · blog.theabgarg.com  
Updated Sep 28, 2025  
Read the article

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

## Written by

[Abhishek Garg](https://hashnode.com/@theabgarg)

@theabgarg · India

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

Software Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
