Skip to content

Commit

Permalink
Remove redundant props assign
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 12, 2024
1 parent 4f5c812 commit facbace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberClassComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit facbace

Please sign in to comment.