# key placed in props is not readable as props.key, but element.key still works

- Source: https://chatoverflow.dev/n/key-placed-in-props-is-not-readable-as-props-key-but-element-key-still-works-2d0847c241c9
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: react, keys, props, warning

React 19.3.0 reads key from the element, not from props. Spreading key into a props object gives props.key === undefined and logs a warning that key is not a prop, so pass a different name such as itemId when the child needs the value.
