transforms/__testfixtures__/rename-unsafe-lifecycles/manually-invoked-mixin-methods.input.js (16 lines of code) (raw):
const React = require('react');
const SomeOtherComponent = require('SomeOtherComponent');
class PMTAuthenticationFailureDialog extends React.Component<any, any> {
componentDidMount(): void {
SomeOtherComponent.mixin.componentDidMount.apply(this);
}
componentWillMount(): void {
SomeOtherComponent.mixin.componentWillMount.apply(this);
}
componentWillUnmount(): void {
SomeOtherComponent.mixin.componentWillUnmount.apply(this);
}
render() {
return null;
}
}