Skip to content

Commit 482a300

Browse files
committed
var => const
1 parent 35e1cf1 commit 482a300

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/react-dom/src/server/DOMMarkupOperations.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ export function createMarkupForProperty(name, value) {
5050
if (value === null) {
5151
return '';
5252
}
53-
var propertyInfo = getPropertyInfo(name);
53+
const propertyInfo = getPropertyInfo(name);
5454
if (propertyInfo) {
55-
var attributeName = propertyInfo.attributeName;
55+
const attributeName = propertyInfo.attributeName;
5656
if (
5757
propertyInfo.hasBooleanValue ||
5858
(propertyInfo.hasOverloadedBooleanValue && value === true)

packages/react-dom/src/shared/DOMProperty.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export function isBadlyTypedAttributeValue(name, value, isCustomComponentTag) {
204204
propertyInfo.hasOverloadedBooleanValue
205205
);
206206
}
207-
var prefix = name.toLowerCase().slice(0, 5);
207+
const prefix = name.toLowerCase().slice(0, 5);
208208
return prefix !== 'data-' && prefix !== 'aria-';
209209
}
210210

0 commit comments

Comments
 (0)