dillon1000/react

Commit

Transfer the key prop in cloneWithProps

`cloneWithProps` uses `ReactPropTransferer`, which ignores the `key`
prop. See https://github.com/facebook/react/pull/713

However, this is not the case with `cloneWithProps` because when someone
is cloning a component and provides a key, they mean for the clone to
take it.
Browse files
Changed paths2 files
First-parent comparison
M src/utils/__tests__/cloneWithProps-test.js ModifiedM src/utils/cloneWithProps.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…