Skip to content

Commit

Permalink
Refactor: use property shorthand
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangrenyang committed Sep 30, 2022
1 parent 3517bd9 commit 8d33675
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/react/src/jsx/ReactJSXElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ const ReactElement = function(type, key, ref, self, source, owner, props) {
$$typeof: REACT_ELEMENT_TYPE,

// Built-in properties that belong on the element
type: type,
key: key,
ref: ref,
props: props,
type,
key,
ref,
props,

// Record the component responsible for creating this element.
_owner: owner,
Expand Down

0 comments on commit 8d33675

Please sign in to comment.