---
title: "Discussion on \"How to use {useID} in React18?\" | Hashnode"
description: "Discussion on \"How to use {useID} in React18?\". The useId() hook is a new way to generate a unique random Id in React 18.\nThe useId is a new hook introduced in React 18. The useId hook helps generate a unique Id on both the client-side and server-side.\nThe previous one was called the useOpaqueIden..."
url: "https://hashnode.com/posts/how-to-use-useid-in-react18/62a66c9b4754a2eb1e0a704a"
---

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

Discussion

# [How to use {useID} in React18?](https://developerblogs.hashnode.dev/how-to-use-useid-in-react18?utm_source=hashnode&utm_medium=feed)

The useId() hook is a new way to generate a unique random Id in React 18. The useId is a new hook introduced in React 18. The useId hook helps generate a unique Id on both the client-side and server-side. The previous one was called the useOpaqueIden...

Jun 12, 2022 · 1 min read · developerblogs.hashnode.dev  
Read the article

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

## Written by

[Taha Ahmed khan](https://hashnode.com/@TahaAhmed)

@TahaAhmed

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

Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
