Skip to content

Commit d380676

Browse files
committed
Revert "Changed this.props assignment"
This reverts commit 41bb88f.
1 parent 41bb88f commit d380676

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/extendReactClass.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,7 @@ export default (Component: Object, defaultStyles: Object, options: Object) => {
3636
writable: false
3737
});
3838

39-
const originalProps = this.props;
40-
try {
41-
this.props = props;
42-
} finally {
43-
this.props = originalProps;
44-
}
39+
this.props = props;
4540
} else {
4641
styles = {};
4742
}

0 commit comments

Comments
 (0)