Skip to content

Commit

Permalink
feat(gatsby): Improve dev 404 page (#31332)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed May 11, 2021
1 parent c210f1d commit dfaea09
Showing 1 changed file with 19 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,20 @@ class Dev404Page extends React.Component {
Create a React.js component like the following in your site
directory at
{` `}"<code>{newFilePath}</code>"{` `}
and this page will automatically refresh to show the new page
component you created.
and then refresh to show the new page component you created.
</p>
<pre>
<pre
style={{
border: `1px solid lightgray`,
padding: `8px`,
maxWidth: `80ch`,
background: `#f3f3f3`,
}}
>
<code
dangerouslySetInnerHTML={{
__html: `
__html: `import * as React from "react"
export default function Component () {
return "Hello world"
}`,
Expand All @@ -163,7 +170,14 @@ export default function Component () {
{` `}"<code>{newAPIPath}</code>"{` `}
and refresh to execute the new API function you created.
</p>
<pre>
<pre
style={{
border: `1px solid lightgray`,
padding: `8px`,
maxWidth: `80ch`,
background: `#f3f3f3`,
}}
>
<code
dangerouslySetInnerHTML={{
__html: `
Expand Down

0 comments on commit dfaea09

Please sign in to comment.