mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 10:22:30 +02:00
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:
parent
5357fcefee
commit
9fceeb9ec5
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue