Skip to content

Commit

Permalink
Merge pull request #2943 from preactjs/golf-props-is
Browse files Browse the repository at this point in the history
Pass all props to createElement instead of just `is` [-5b]
  • Loading branch information
marvinhagemeister authored Jan 20, 2021
2 parents d6438b3 + d69f8d1 commit 7dcc323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diff/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ function diffElementNodes(
dom = document.createElement(
// @ts-ignore We know `newVNode.type` is a string
newVNode.type,
newProps.is && { is: newProps.is }
newProps.is && newProps
);
}

Expand Down

0 comments on commit 7dcc323

Please sign in to comment.