mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Remove redundant props assign (#28829)
This commit is contained in:
1 parent
ed40236036
commit
9defcd56bc
1 file changed
+1
-1
@@ -1274,7 +1274,7 @@ export function resolveClassComponentProps(
|
||||
// We may have already copied the props object above to remove ref. If so,
|
||||
// we can modify that. Otherwise, copy the props object with Object.assign.
|
||||
if (newProps === baseProps) {
|
||||
newProps = assign({}, newProps, baseProps);
|
||||
newProps = assign({}, newProps);
|
||||
}
|
||||
// Taken from old JSX runtime, where this used to live.
|
||||
for (const propName in defaultProps) {
|
||||
|
||||
Reference in new issue
Block a user