Refactor: use property shorthand (#25366)
zhangrenyang committed
Oct 1, 2022 at 05:50 UTC
4c016e7aafb17657c143e14093c6013a2d805ae0
1 file changed
+4
-4
packages/react/src/jsx/ReactJSXElement.js
+4
-4
@@ -151,10 +151,10 @@ const ReactElement = function(type, key, ref, self, source, owner, props) {
151
$$typeof: REACT_ELEMENT_TYPE,
152
153
// Built-in properties that belong on the element
154
- type: type,
155
- key: key,
156
- ref: ref,
157
- props: props,
154
+ type,
155
+ key,
156
+ ref,
157
+ props,
158
159
// Record the component responsible for creating this element.
160
_owner: owner,