---
title: "Discussion on \"Updating a state hook object\" | Hashnode"
description: "Discussion on \"Updating a state hook object\". You might want your state hook to be an object. Which is fine, it can absolutely be one.\n  const [state, setState = useState({\n    language: 'React',\n    proficiency: 'confused'\n  });\nThe trouble comes when you try to update it. You might think you c..."
url: "https://hashnode.com/posts/updating-a-state-hook-object/61052a503b9b85399dcf2de8"
---

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

Discussion

# [Updating a state hook object](https://blog.nicm42.me.uk/updating-a-state-hook-object?utm_source=hashnode&utm_medium=feed)

You might want your state hook to be an object. Which is fine, it can absolutely be one. const \[state, setState = useState({ language: 'React', proficiency: 'confused' }); The trouble comes when you try to update it. You might think you c...

Jul 31, 2021 · 1 min read · blog.nicm42.me.uk  
Read the article

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

## Written by

[Nic](https://hashnode.com/@nicm42)

@nicm42 · England

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

This week I learnt...

Front End Developer. I like problem solving and making things pretty. I also like red.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
