dillon1000/react
Commit
Browse files ReactChildren
Instead of changing `traverseAllChildren`, keep that around for perf reasons (for the hot code path `flattenChildren`) Introduce `ReactChildren.map` and `ReactChildren.forEach` which mirrors `Array.prototype.map` and `Array.prototype.forEach`. This involves a rename of `mapAllChildren`
Changed paths3 files
First-parent comparisonsrc/core/React.js ModifiedR src/utils/mapAllChildren.js →src/utils/ReactChildren.js RenamedR src/utils/__tests__/mapAllChildren-test.js →src/utils/__tests__/ReactChildren-test.js RenamedPatch
Files changed
Rendering syntax-highlighted changes…