---
title: "Discussion on \"useState: Function can have state?\" | Hashnode"
description: "Discussion on \"useState: Function can have state?\". Introduction\nThere are two types of component in React-native class component & Functional component.\nuseState is a hook that allows a functional component to store state variable. If you are working with class component, It is equivalent to  this.st..."
url: "https://hashnode.com/posts/usestate-function-can-have-state/61dab8759881c433c36b4fff"
---

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

Discussion

# [useState: Function can have state?](https://yadavrajshekhar.hashnode.dev/usestate-function-can-have-state?utm_source=hashnode&utm_medium=feed)

Introduction There are two types of component in React-native class component & Functional component. useState is a hook that allows a functional component to store state variable. If you are working with class component, It is equivalent to this.st...

Jan 9, 2022 · 5 min read · yadavrajshekhar.hashnode.dev  
Read the article

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

## Written by

[Rajshekhar Yadav](https://hashnode.com/@rajshekhar1402)

@rajshekhar1402 · Lucknow, India

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

Mobile Application Developer

## Responses 1

Markdown supported · ⌘↵ to post

[Abhas Vohra](https://hashnode.com/@AbhasVohra)

[Jan 10, 2022](https://hashnode.com/posts/usestate-function-can-have-state/61dab8759881c433c36b4fff/comment/61dba4683ce4b2377adfe441)

This has cleared out a lot of my doubts wrt to state. The author is a champ.
