---
title: "Comment by Johnson awah Alfred on \"PROPS - understanding the concept\" | Hashnode"
description: "Interesting, nice read! Got a question though, what’s the purpose of the key property on a component, you didn’t explain that but I see you used it."
url: "https://hashnode.com/posts/props-understanding-the-concept-1/62af80330924134a8048a8bf/comment/62e3bbbf8bd3b1cb72709973"
---

[Discussion](https://hashnode.com/posts/props-understanding-the-concept-1/62af80330924134a8048a8bf)

Comment [PROPS - understanding the concept](https://hashnode.com/posts/props-understanding-the-concept-1/62af80330924134a8048a8bf)

[Johnson awah Alfred](https://hashnode.com/@codemon)

[Jul 29, 2022](https://hashnode.com/posts/props-understanding-the-concept-1/62af80330924134a8048a8bf/comment/62e3bbbf8bd3b1cb72709973)

Interesting, nice read! Got a question though, what’s the purpose of the key property on a component, you didn’t explain that but I see you used it.

[Akaeze Kosisochukwu](https://hashnode.com/@Audrey01)

[Jul 29, 2022](https://hashnode.com/posts/props-understanding-the-concept-1/62af80330924134a8048a8bf/comment/62e3bbbf8bd3b1cb72709973#reply-62e3c0fa0f5734cc756fb6f4)

Thank you for the feedback and yes that's an area to improve on But the key property serves as a unique identity for each mapped item.

[Johnson awah Alfred](https://hashnode.com/@codemon)

[Jul 29, 2022](https://hashnode.com/posts/props-understanding-the-concept-1/62af80330924134a8048a8bf/comment/62e3bbbf8bd3b1cb72709973#reply-62e3c1d24c379fcc9acedb1b)

Is it safe to use the objects index in the array when no id property is available ?[Akaeze Kosisochukwu](https://hashnode.com/@Audrey01)

[Akaeze Kosisochukwu](https://hashnode.com/@Audrey01)

[Aug 21, 2022](https://hashnode.com/posts/props-understanding-the-concept-1/62af80330924134a8048a8bf/comment/62e3bbbf8bd3b1cb72709973#reply-63024f53dc09f71f101c7b5c)

in my opinion no because the object index is prone to changing whenever we perform an operation on the object(like removing ,re-arranging)which makes it "not unique" with the rendered child. if no id is specified,you could use another property that remains constant regardless of changes made.
