Created
January 9, 2020 13:02
-
-
Save praisegeek/4a78315fcea907ea6c27c2f52b12bbd2 to your computer and use it in GitHub Desktop.
Gatsby error page which prevents a flash of 404
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import SEO from "../components/seo"; | |
const browser = typeof window !== "undefined" && window; | |
const NotFoundPage = () => { | |
return ( | |
browser && ( | |
<div> | |
<SEO title="404 Page not found" /> | |
<h1>404 Error content...</h1> | |
</div> | |
) | |
); | |
}; | |
export default NotFoundPage; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment