Somewhere else in the code you’re trying to access props.key
Basically, “key” props are not passed to a child component.
React docs say: “special props (ref and key) are used by React, and are thus not forwarded to the component.”.
Somewhere else in the code you’re trying to access props.key
Basically, “key” props are not passed to a child component.
React docs say: “special props (ref and key) are used by React, and are thus not forwarded to the component.”.