Skip to content

Instantly share code, notes, and snippets.

@laxmariappan
Created May 23, 2022 20:00
Show Gist options
  • Save laxmariappan/ddeb729b0a3b298be0076100fb202225 to your computer and use it in GitHub Desktop.
Save laxmariappan/ddeb729b0a3b298be0076100fb202225 to your computer and use it in GitHub Desktop.
ErrorBoundary for Remix app
export function ErrorBoundary({ error }) {
console.log(error);
return (
<Document>
<Layout>
<section className="p-6">
<div className="relative items-center w-full px-5 py-12 mx-auto md:px-12 lg:px-24 max-w-7xl">
<h1>There was an Error</h1>
<p>{error.message}</p>
</div>
</section>
</Layout>
</Document>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment