dillon1000/react
Commit
Browse files 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.
Changed paths4 files
First-parent comparisonsrc/core/ReactCompositeComponent.js ModifiedM src/core/ReactOwner.js ModifiedM src/core/__tests__/refs-test.js ModifiedM src/utils/__tests__/cloneWithProps-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…