---
title: "Comment by Hardik Joshi on \"Why React Keys Matter: An Introduction\" | Hashnode"
description: "So true! Recently I had a requirement to refresh a component, I initially thought of creating a state variable and refresh it based on that but adding a key sol"
url: "https://hashnode.com/posts/why-react-keys-matter-an-introduction/5f603c311d6093023c713314/comment/5f60e09ac417c20b18b7217f"
---

[Discussion](https://hashnode.com/posts/why-react-keys-matter-an-introduction/5f603c311d6093023c713314)

Comment [Why React Keys Matter: An Introduction](https://hashnode.com/posts/why-react-keys-matter-an-introduction/5f603c311d6093023c713314)

[Hardik Joshi](https://hashnode.com/@hardik_joshi28)

[Sep 15, 2020](https://hashnode.com/posts/why-react-keys-matter-an-introduction/5f603c311d6093023c713314/comment/5f60e09ac417c20b18b7217f)

So true! Recently I had a requirement to refresh a component, I initially thought of creating a state variable and refresh it based on that but adding a key solved the issue. I was looking for an article to explain "behind the scenes" and I landed here... Thank you so much for explaining! :)

[Victoria Lo](https://hashnode.com/@victoria)

[Sep 15, 2020](https://hashnode.com/posts/why-react-keys-matter-an-introduction/5f603c311d6093023c713314/comment/5f60e09ac417c20b18b7217f#reply-5f60fbe17317080b4cf5c5d6)

No problem! Glad it helped :)
