Create a Pages
info
Create pages article path(eg: 2024-06-06-docs.md): src/pages/markdown-page.md
pages related articles must be placed in the 'src/pages' directory
React Page
In src/pages/
create file my-react-page.js
src/pages/my-react-page.js
import React from 'react';
import Layout from '@theme/Layout';
export default function MyReactPage() {
return (
<Layout>
<h1>My React page</h1>
<p>This is a React page</p>
</Layout>
);
}
Markdown Page
In src/pages/
create file my-markdown-page.md
src/pages/my-markdown-page.md
# My Markdown page
This is a Markdown page