mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Remove redundant props assign (#28829)
This commit is contained in:
@@ -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