Skip to content

Commit

Permalink
Update create-a-page.md
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber authored Apr 2, 2021
1 parent fa6603c commit a2613fb
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@ Create a file at `src/pages/my-react-page.js`:
import React from 'react';
import Layout from '@theme/Layout';

function HelloWorld() {
export default function MyReactPage() {
return (
<Layout>
<h1>My React page</h1>
<p>This is a React page</p>
</Layout>
);
}

export default HelloWorld;
```

A new page is now available at `http://localhost:3000/my-react-page`.
Expand Down

0 comments on commit a2613fb

Please sign in to comment.