dillon1000/react
Commit
Browse files Don't mutate .props.style in ReactDOMComponent
We currently make a copy of .style because we support mutating the style object in place. Instead of storing it back on props, store it separately on the component instance so that we don't mutate props anywhere. This is gross but should all be cleaned up after #2008 is resolved. Test Plan: jest
Changed paths1 file
First-parent comparisonsrc/browser/ui/ReactDOMComponent.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…