---
title: "Discussion on \"React Hooks: useState - Basic Implementation\" | Hashnode"
description: "Discussion on \"React Hooks: useState - Basic Implementation\". This article outlines the basic implementation of useState - one of the many React Hooks.\nStep - 1  -> import useState from React.\nimport React, { useState } from 'react';\nStep - 2 -> Declare the state variable for the component\nconst [name, setName]..."
url: "https://hashnode.com/posts/react-hooks-usestate-basic-implementation/5f8c09a7d7dc0b17a97a37c8"
---

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

Discussion

# [React Hooks: useState - Basic Implementation](https://lan7.hashnode.dev/react-hooks-usestate-basic-implementation?utm_source=hashnode&utm_medium=feed)

This article outlines the basic implementation of useState - one of the many React Hooks. Step - 1 -> import useState from React. import React, { useState } from 'react'; Step - 2 -> Declare the state variable for the component const \[name, setName\]...

Oct 18, 2020 · 2 min read · lan7.hashnode.dev  
Read the article

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

## Written by

[Lakshmi Narasimhan SR](https://hashnode.com/@LaN)

@LaN

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

Permanent Beta, Learn-Apply-Learn

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
