Remove redundant props assign (#28829)

This commit is contained in:
Sebastian Silbermann
2024-04-12 21:55:51 +02:00
committed by GitHub
parent ed40236036
commit 9defcd56bc
+1 -1
View File
@@ -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) {