mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 03:12:35 +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 React from 'react';
|
||||||
import Layout from '@theme/Layout';
|
import Layout from '@theme/Layout';
|
||||||
|
|
||||||
function HelloWorld() {
|
export default function MyReactPage() {
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
<h1>My React page</h1>
|
<h1>My React page</h1>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue