Skip to content

Commit 899a0b3

Browse files
committed
Partially revert type -> elementType
1 parent a5b2ac5 commit 899a0b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,14 +389,14 @@ function createOpenTagMarkup(
389389
return ret;
390390
}
391391

392-
function validateRenderResult(child, elementType) {
392+
function validateRenderResult(child, type) {
393393
if (child === undefined) {
394394
invariant(
395395
false,
396396
'%s(...): Nothing was returned from render. This usually means a ' +
397397
'return statement is missing. Or, to render nothing, ' +
398398
'return null.',
399-
getComponentName(elementType) || 'Component',
399+
getComponentName(type) || 'Component',
400400
);
401401
}
402402
}

0 commit comments

Comments
 (0)