docs(v2): add a missing "export" from the initial template (#4546)

* 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>
This commit is contained in:
Foxeye-Rinx 2021-04-02 17:43:36 +07:00 committed by GitHub
parent 5357fcefee
commit 9fceeb9ec5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>