mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00: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
|
|
@ -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…
Reference in New Issue