dillon1000/react
Commit
Browse files 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.
Changed paths2 files
First-parent comparisonsrc/utils/__tests__/cloneWithProps-test.js ModifiedM src/utils/cloneWithProps.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…