Skip to main content

New page

We can create new pages with markdown file or by creating React component.

GitHub image Link

GitHub Pdf Link for Download

GitHub Pdf Link

info

Check the [Pages Plugin API Reference documentation]for an exhaustive list of options.

Add a React page

Create a file /src/pages/helloReact.js:

/src/pages/helloReact.js
import React from 'react';
import Layout from '@theme/Layout';

function Hello() {
return (
<Layout title="Hello">
<div
style={{
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
height: '50vh',
fontSize: '20px',
}}>
<p>
Edit <code>pages/helloReact.js</code> and save to reload.
</p>
</div>
</Layout>
);
}

export default Hello;
Toggle me!
This is the detailed content

Nested toggle! Some surprise inside...
😲😲😲😲😲