diff --git a/packages/react-dom/src/shared/DOMProperty.js b/packages/react-dom/src/shared/DOMProperty.js index cd88c0223db3..dd2c8f6e3a42 100644 --- a/packages/react-dom/src/shared/DOMProperty.js +++ b/packages/react-dom/src/shared/DOMProperty.js @@ -224,12 +224,12 @@ const properties = {}; // A few React string attributes have a different name. // This is a mapping from React prop names to the attribute names. -new Map([ +[ ['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv'], -]).forEach((attributeName, name) => { +].forEach(([name, attributeName]) => { properties[name] = new PropertyInfoRecord( name, STRING,