---
title: "Discussion on \"What is the significance of keys in React?\" | Hashnode"
description: "Discussion on \"What is the significance of keys in React?\". Keys help React identify which items have changed, are added, or are removed. \nExample:\nconst numbers = [1, 2, 3, 4, 5];\nconst listItems = numbers.map((number) =>\n  <li key={number.toString()}>\n    {number}\n  </li>\n);\nOne of the tricky aspects I've f..."
url: "https://hashnode.com/posts/what-is-the-significance-of-keys-in-react/61560af1e896275f335dfbec"
---

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

Discussion

# [What is the significance of keys in React?](https://hashnode.com/post/what-is-the-significance-of-keys-in-react?utm_source=hashnode&utm_medium=feed)

Keys help React identify which items have changed, are added, or are removed. Example: const numbers = \[1, 2, 3, 4, 5\]; const listItems = numbers.map((number) => <li key={number.toString()}> {number} </li> ); One of the tricky aspects I've f...

Sep 30, 2021 · 2 min read · hashnode.com  
Read the article

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

## Written by

[Ramandeep Kaur](https://hashnode.com/@Ramandeep)

@Ramandeep

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

## Responses 2

Markdown supported · ⌘↵ to post

[Edward Mike](https://hashnode.com/@eddmike)

[Sep 30, 2021](https://hashnode.com/posts/what-is-the-significance-of-keys-in-react/61560af1e896275f335dfbec/comment/61560b8d28ed304eb1d7ff60)

Great content 👌

[Edward Mike](https://hashnode.com/@eddmike)

[Sep 30, 2021](https://hashnode.com/posts/what-is-the-significance-of-keys-in-react/61560af1e896275f335dfbec/comment/61560b60e896275f335dfbfc)

Bsbsbhbdbdbd
