dillon1000/react

Commit

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
Browse files
Changed paths2 files
First-parent comparison
M src/core/ReactPropTransferer.js ModifiedM src/core/__tests__/ReactCompositeComponentTransferProps-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…