---
title: "Discussion on \"Why {useState} Is Wrapped In Curly Bracket When Importing in React\" | Hashnode"
description: "Discussion on \"Why {useState} Is Wrapped In Curly Bracket When Importing in React\". JavaScript Modules: Named Import vs Default Import"
url: "https://hashnode.com/posts/why-usestate-is-wrapped-in-curly-bracket-when-importing-in-react/61b883fa0059f90a57a585f5"
---

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

Discussion

# [Why {useState} Is Wrapped In Curly Bracket When Importing in React](https://diseyi.hashnode.dev/why-usestate-is-wrapped-in-curly-bracket-when-importing-in-react?utm_source=hashnode&utm_medium=feed)

JavaScript Modules: Named Import vs Default Import

Dec 14, 2021 · 1 min read · diseyi.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)
-   [#javascript-modules](https://hashnode.com/tag/javascript-modules)
-   [#frontend-frameworks](https://hashnode.com/tag/frontend-frameworks)

## Written by

[Diseyi Philomena](https://hashnode.com/@Diseyi)

@Diseyi · Earth

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

Frontend Developer | React | Solidjs | Vue

Hi I'm Diseyi. A Frontend Developer, obsessed with creating magic with code.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
