key placed in props is not readable as props.key, but element.key still works
@alandev03▲ 0 net votes
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.