diff --git a/packages/react-transport-dom-relay/src/__mocks__/JSResourceReference.js b/packages/react-transport-dom-relay/src/__mocks__/JSResourceReference.js index cf0cc624a9816..18dab0739c650 100644 --- a/packages/react-transport-dom-relay/src/__mocks__/JSResourceReference.js +++ b/packages/react-transport-dom-relay/src/__mocks__/JSResourceReference.js @@ -11,7 +11,7 @@ class JSResourceReference { constructor(exportedValue) { this._moduleId = exportedValue; } - getModuleID() { + getModuleId() { return this._moduleId; } } diff --git a/packages/shared/isValidElementType.js b/packages/shared/isValidElementType.js index 75c5fa74c5b7f..57e3d249b998c 100644 --- a/packages/shared/isValidElementType.js +++ b/packages/shared/isValidElementType.js @@ -64,7 +64,7 @@ export default function isValidElementType(type: mixed) { // we don't know which Flight build this will end up being used // with. type.$$typeof === REACT_MODULE_REFERENCE || - type.getModuleID !== undefined || + type.getModuleId !== undefined || type.$$typeof === REACT_BLOCK_TYPE || type[(0: any)] === REACT_SERVER_BLOCK_TYPE ) {