import React from 'react'; let Trigger; // eslint-disable-line if (process.env.REACT === '15') { const ActualTrigger = require.requireActual('rc-trigger'); const render = ActualTrigger.prototype.render; ActualTrigger.prototype.render = function () { const { popupVisible } = this.state; // eslint-disable-line let component; if (popupVisible || this._component) { // eslint-disable-line component = this.getComponent(); // eslint-disable-line } return (