File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -403,14 +403,14 @@ function createOpenTagMarkup(
403403 return ret ;
404404}
405405
406- function validateRenderResult ( child , elementType ) {
406+ function validateRenderResult ( child , type ) {
407407 if ( child === undefined ) {
408408 invariant (
409409 false ,
410410 '%s(...): Nothing was returned from render. This usually means a ' +
411411 'return statement is missing. Or, to render nothing, ' +
412412 'return null.' ,
413- getComponentName ( elementType ) || 'Component' ,
413+ getComponentName ( type ) || 'Component' ,
414414 ) ;
415415 }
416416}
Original file line number Diff line number Diff line change @@ -118,7 +118,8 @@ function coerceRef(
118118 // TODO: Clean this up once we turn on the string ref warning for
119119 // everyone, because the strict mode case will no longer be relevant
120120 if ( returnFiber . mode & StrictMode || warnAboutStringRefs ) {
121- const componentName = getComponentName ( returnFiber . elementType ) || 'Component' ;
121+ const componentName =
122+ getComponentName ( returnFiber . elementType ) || 'Component' ;
122123 if ( ! didWarnAboutStringRefs [ componentName ] ) {
123124 if ( warnAboutStringRefs ) {
124125 warningWithoutStack (
You can’t perform that action at this time.
0 commit comments