mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
transferPropsTo should never transfer the key property
This commit is contained in:
@@ -52,6 +52,10 @@ var TransferStrategies = {
|
||||
* Transfer the `className` prop by merging them.
|
||||
*/
|
||||
className: createTransferStrategy(joinClasses),
|
||||
/**
|
||||
* Never transfer the `key` prop.
|
||||
*/
|
||||
key: emptyFunction,
|
||||
/**
|
||||
* Never transfer the `ref` prop.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user