dillon1000/react

Commit

use key="foo" for all components

flattenChildren was only using key when child.mountInContainerNode
exists, which is defined on ReactCompositeComponent, and not
ReactNativeComponent.

This uses the isValidComponent() fn to see if we should use this key.
Browse files
Changed paths2 files
First-parent comparison
A src/core/__tests__/ReactIdentity-test.js AddedM src/utils/flattenChildren.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…