dillon1000/react

Commit

Don't thread index through traverseAllChildren

I'm not super attached to this, but this feels cleaner to me. Might even be faster since flattenChildren doesn't use the index. Probably no change though.
Browse files
Changed paths3 files
First-parent comparison
M src/utils/ReactChildren.js ModifiedM src/utils/__tests__/traverseAllChildren-test.js ModifiedM src/utils/traverseAllChildren.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…