class ErrorBoundary extends React.Component { constructor(props) { super(props); this.state = { hasError: false };
}
static getDe