import React from 'react'; import './App.css'; class ErrorBoundary extends React.Component { constructor(props) { super(props); this.state = { hasError: false }; } static getDerivedStateFromError(error) { return { hasError: true }; } componentDidCatch(error, errorInfo) { console.error('ErrorBoundary caught an error:', error, errorInfo); } render() { if (this.state.hasError) { return (
Something went wrong with Satish's portfolio. Don't worry, this rarely happens! Please try refreshing the page or come back later.