dillon1000/react

Commit

Unbreak refs

If no refs are rendered, `this.refs` is undefined. This is bad since it deopts & is hard to look for. Instead we should make `this.refs` an immutable empty object.
Browse files
Changed paths4 files
First-parent comparison
M src/core/ReactCompositeComponent.js ModifiedM src/core/ReactOwner.js ModifiedM src/core/__tests__/refs-test.js ModifiedM src/utils/__tests__/cloneWithProps-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…