New page
We can create new pages with markdown file or by creating React component.
Add an image through github 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...
😲😲😲😲😲