---
title: "Discussion on \"A minor error we make while creating a React's state\" | Hashnode"
description: "Discussion on \"A minor error we make while creating a React's state\". A state in react doesn't have a type. A counter can hold a value of a number at an instance and it can be changed into something else like a string in another instance. Doing this causes no errors and there isn't one either.\nThough this doesn't raise..."
url: "https://hashnode.com/posts/a-minor-error-we-make-while-creating-a-reacts-state/63cac6e10a811f9ef11c76b9"
---

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

Discussion

# [A minor error we make while creating a React's state](https://blogs.bigomega.dev/a-minor-error-we-make-while-creating-a-reacts-state?utm_source=hashnode&utm_medium=feed)

A state in react doesn't have a type. A counter can hold a value of a number at an instance and it can be changed into something else like a string in another instance. Doing this causes no errors and there isn't one either. Though this doesn't raise...

Dec 28, 2019 · 2 min read · blogs.bigomega.dev  
Read the article

## Written by

[Prashant Acharya](https://hashnode.com/@prashantacharya)

@prashantacharya · Kathmandu, Nepal

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

Software Engineer based on Kathmandu

I am a full-stack developer with 5 years of experience building web applications. Skilled in technologies such as JavaScript, TypeScript, Node.js, Go, React, and PostgreSQL. I have a strong understanding of web development principles and the ability to handle both front-end and back-end tasks. Always eager to learn new technologies and improve my skills.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
