Errors

Handling errors in Remix

Remix provides ErrorBoundary to handle errors in your application.
export function ErrorBoundary() {
  return (
    <html>
      <head>
        <title>Something went wrong!</title>
        <Meta />
        <Links />
      </head>
      <body>
        {/* add the UI you want your users to see */}
      </body>
    </html>
  );
}