-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: react router error handling for 404s
- Loading branch information
1 parent
12606f9
commit 0f5a0b8
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from "react"; | ||
|
||
export default function PageNotFound() { | ||
return (<> | ||
<div className="ons-page__container ons-container"> | ||
<div className="ons-grid"> | ||
<div className="ons-grid__col ons-col-12@m "> | ||
<main id="main-content" className="ons-page__main "> | ||
<h1>Page not found</h1> | ||
<p>If you entered a web address, check it is correct.</p> | ||
<p>If you pasted the web address, check you copied the whole address.</p> | ||
<p>If the web address is correct, or you selected a link or button, <a href="#0">contact us</a>.</p> | ||
</main> | ||
</div> | ||
</div> | ||
</div> | ||
</>); | ||
} |