From 4c016e7aafb17657c143e14093c6013a2d805ae0 Mon Sep 17 00:00:00 2001 From: zhangrenyang Date: Sat, 1 Oct 2022 05:50:08 +0800 Subject: [PATCH] Refactor: use property shorthand (#25366) --- packages/react/src/jsx/ReactJSXElement.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react/src/jsx/ReactJSXElement.js b/packages/react/src/jsx/ReactJSXElement.js index af7085f7e2476..091dad23f4b0a 100644 --- a/packages/react/src/jsx/ReactJSXElement.js +++ b/packages/react/src/jsx/ReactJSXElement.js @@ -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,