Things go wrong in production—an API might time out or a database query might fail. Creating an error.jsx file catches runtime errors inside that route segment and shows a friendly recovery screen with a "Try Again" button instead of crashing your entire app.
Note: error.jsx must always be a Client Component ('use client').