From dfef6272e878c4cfa8ac0855e67552e67a570528 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Thu, 2 Feb 2023 15:10:21 -0500 Subject: [PATCH] For some reason Babel doesn't like this syntax --- packages/react/src/ReactElementValidator.js | 2 +- packages/react/src/jsx/ReactJSXElementValidator.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react/src/ReactElementValidator.js b/packages/react/src/ReactElementValidator.js index 14af2ade8133a..0451025b6c7f1 100644 --- a/packages/react/src/ReactElementValidator.js +++ b/packages/react/src/ReactElementValidator.js @@ -35,7 +35,7 @@ import {setExtraStackFrame} from './ReactDebugCurrentFrame'; import {describeUnknownElementTypeFrameInDEV} from 'shared/ReactComponentStackFrame'; import hasOwnProperty from 'shared/hasOwnProperty'; -const REACT_CLIENT_REFERENCE: symbol = Symbol.for('react.client.reference'); +const REACT_CLIENT_REFERENCE = Symbol.for('react.client.reference'); function setCurrentlyValidatingElement(element) { if (__DEV__) { diff --git a/packages/react/src/jsx/ReactJSXElementValidator.js b/packages/react/src/jsx/ReactJSXElementValidator.js index 1cc8075da58da..da000079ee90f 100644 --- a/packages/react/src/jsx/ReactJSXElementValidator.js +++ b/packages/react/src/jsx/ReactJSXElementValidator.js @@ -32,7 +32,7 @@ import ReactSharedInternals from 'shared/ReactSharedInternals'; const ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; const ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; -const REACT_CLIENT_REFERENCE: symbol = Symbol.for('react.client.reference'); +const REACT_CLIENT_REFERENCE = Symbol.for('react.client.reference'); function setCurrentlyValidatingElement(element) { if (__DEV__) {