Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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