---
title: "Discussion on \"Why you should use the key prop in react.\" | Hashnode"
description: "Discussion on \"Why you should use the key prop in react.\". This article assumes that you have understanding of javascript and basic ReactJs.\nWhy use the \"key\" prop?\n\nIt helps react identify the items in a list.\nIt gives each element in a list a unique identity.\n\nWhat values can the key prop have?\n\nId -  It i..."
url: "https://hashnode.com/posts/why-you-should-use-the-key-prop-in-react/604e7da237d84907f13295ae"
---

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

Discussion

# [Why you should use the key prop in react.](https://blog.teniolafatunmbi.com/why-you-should-use-the-key-prop-in-react?utm_source=hashnode&utm_medium=feed)

This article assumes that you have understanding of javascript and basic ReactJs. Why use the "key" prop? It helps react identify the items in a list. It gives each element in a list a unique identity. What values can the key prop have? Id - It i...

Mar 14, 2021 · 2 min read · blog.teniolafatunmbi.com  
Read the article

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

## Written by

[Teniola Fatunmbi](https://hashnode.com/@devteni)

@devteni · Lagos, Nigeria

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

Software Engineer | Technical Writer

Software Engineer | Technical Writer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
