diff --git a/packages/react-dom/src/__tests__/ReactCompositeComponent-test.js b/packages/react-dom/src/__tests__/ReactCompositeComponent-test.js index 7db34eafa700a..115544170a83e 100644 --- a/packages/react-dom/src/__tests__/ReactCompositeComponent-test.js +++ b/packages/react-dom/src/__tests__/ReactCompositeComponent-test.js @@ -1762,4 +1762,18 @@ describe('ReactCompositeComponent', () => { {withoutStack: true}, ); }); + + // Regression test for accidental breaking change + // https://github.com/facebook/react/issues/13580 + it('should support classes shadowing isReactComponent', () => { + class Shadow extends React.Component { + isReactComponent() {} + render() { + return
; + } + } + const container = document.createElement('div'); + ReactDOM.render(