Skip to content

Commit 0e9ce1c

Browse files
committed
lints
1 parent 4a0256c commit 0e9ce1c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,6 @@ function pushStartTitle(
11281128
target.push(startChunkForTag('title'));
11291129

11301130
let children = null;
1131-
let innerHTML = null;
11321131
for (const propKey in props) {
11331132
if (hasOwnProperty.call(props, propKey)) {
11341133
const propValue = props[propKey];
@@ -1153,7 +1152,7 @@ function pushStartTitle(
11531152
target.push(endOfStartTag);
11541153

11551154
if (__DEV__) {
1156-
let child =
1155+
const child =
11571156
Array.isArray(children) && children.length < 2
11581157
? children[0] || null
11591158
: children;

scripts/error-codes/codes.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,5 +418,6 @@
418418
"430": "ServerContext can only have a value prop and children. Found: %s",
419419
"431": "React elements are not allowed in ServerContext",
420420
"432": "This Suspense boundary was aborted by the server",
421-
"433": "useId can only be used while React is rendering"
421+
"433": "useId can only be used while React is rendering",
422+
"434": "`dangerouslySetInnerHTML` does not make sense on <title>."
422423
}

0 commit comments

Comments
 (0)