dillon1000/react
Commit
Browse files Don't transfer `children` in `transferPropsTo`
06cff60bc1eec13ff804af9f74b3b2b37b5490b3 made it so that `this.props.children` was no longer set when none were provided. var x = <div />; This caused an issue if the code was relying on the following not transferring children. return this.transferPropsTo(<div />); // this now transfer children
Changed paths2 files
First-parent comparisonsrc/core/ReactPropTransferer.js ModifiedM src/core/__tests__/ReactCompositeComponentTransferProps-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…