From 9fceeb9ec52547ea0bddbf0d74db7af065d15e30 Mon Sep 17 00:00:00 2001 From: Foxeye-Rinx Date: Fri, 2 Apr 2021 17:43:36 +0700 Subject: [PATCH] docs(v2): add a missing "export" from the initial template (#4546) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs(v2): add a missing "export" from the initial template * Update create-a-page.md Co-authored-by: Sébastien Lorber --- .../docusaurus-init/templates/classic/docs/create-a-page.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus-init/templates/classic/docs/create-a-page.md b/packages/docusaurus-init/templates/classic/docs/create-a-page.md index 548d5523b069..314bd87e9d50 100644 --- a/packages/docusaurus-init/templates/classic/docs/create-a-page.md +++ b/packages/docusaurus-init/templates/classic/docs/create-a-page.md @@ -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 (

My React page