---
title: "Discussion on \"Usage of multiple state variables while creating React Component.\" | Hashnode"
description: "Discussion on \"Usage of multiple state variables while creating React Component.\". Today I will be sharing my learning from my mistake of writing multiple state variables while creating a React component. \nTake a look at below code snippet.\n\nThe purpose was to generate a Textbox with a text below counting the number of characters t..."
url: "https://hashnode.com/posts/usage-of-multiple-state-variables-while-creating-react-component/61dc220cb0c3ca3df9b490d8"
---

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

Discussion

# [Usage of multiple state variables while creating React Component.](https://heyrandhir.hashnode.dev/usage-of-multiple-state-variables-while-creating-react-component?utm_source=hashnode&utm_medium=feed)

Today I will be sharing my learning from my mistake of writing multiple state variables while creating a React component. Take a look at below code snippet. The purpose was to generate a Textbox with a text below counting the number of characters t...

Jan 10, 2022 · 2 min read · heyrandhir.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#react-native](https://hashnode.com/tag/react-native)
-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

[Randhir Kr Singh](https://hashnode.com/@heyrandhir)

@heyrandhir

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

Tech Enthusiast.

## Responses 1

Markdown supported · ⌘↵ to post

[harish kumar](https://hashnode.com/@harish07)

[Jan 10, 2022](https://hashnode.com/posts/usage-of-multiple-state-variables-while-creating-react-component/61dc220cb0c3ca3df9b490d8/comment/61dc4935cda0d0294b69b7b6)

Such a good explanation man

[Randhir Kr Singh](https://hashnode.com/@heyrandhir)

[Jan 10, 2022](https://hashnode.com/posts/usage-of-multiple-state-variables-while-creating-react-component/61dc220cb0c3ca3df9b490d8/comment/61dc4935cda0d0294b69b7b6#reply-61dc5068b0c3ca3df9b49b89)

Thanks Harish. :)
