# Understanding React's key prop

DevFeed: [Understanding React's key prop](<https://devfeed.tech/articles/understanding-react-s-key-prop-51903.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/understanding-reacts-key-prop>)

Published: 2019-11-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [render](<https://devfeed.tech/topics/render.md>), [Document Object Model (DOM)](<https://devfeed.tech/topics/dom.md>)

Tags: [component](<https://devfeed.tech/tags/component.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [render](<https://devfeed.tech/tags/render.md>), [state](<https://devfeed.tech/tags/state.md>)

## AI overview

A tutorial explaining how React's key prop controls component instances and affects state preservation when elements are rendered, replaced, or mapped over arrays.

## Source excerpt

The key prop is a mechanism for controlling component instances.