Concept Flow - ErrorBoundary component
Component Renders
Error Occurs?
No→Render UI Normally
Yes
Catch Error in ErrorBoundary
Render Fallback UI
User Sees Error Message
The ErrorBoundary watches for errors during rendering. If an error happens, it catches it and shows a fallback UI instead of crashing the whole app.
