dillon1000/react

Commit

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
Browse files
Changed paths1 file
First-parent comparison
M src/browser/ui/ReactDOMComponent.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…