Skip to content

Commit

Permalink
docs(v2): add a missing "export" from the initial template (#4546)
Browse files Browse the repository at this point in the history
* docs(v2): add a missing "export" from the initial template

* Update create-a-page.md

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
  • Loading branch information
Foxeye-Rinx and slorber authored Apr 2, 2021
1 parent 5357fce commit 9fceeb9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ 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>
Expand Down

0 comments on commit 9fceeb9

Please sign in to comment.