Converting stateful React component to stateless functional component: How to implement “componentDidMount” kind of functionality?
I have written a small stateful React component. When this component loads, in componentDidMount method I am making use of Kendo UI to show the content of the component in a popup window. Here's my code: export class ErrorDialog extends React.Component { constructor(props, context) { super(props, context); this.errorPopupWindow = null; window.addEventListener('resize', this.resizeComponent); this.handleWindowKeyDown = this.handleWindowKeyDown.bind(this); this.handleButtonCloseWindowOnClick = this.handleButtonCloseWindowOnClick.bind(this); this.handleButtonShowDetailsOnClick = this