Files
DefectingCat.github.io/pages/p/hello-world.mdx
2022-04-22 17:48:12 +08:00

44 lines
683 B
Plaintext

---
title: Hello world
date: '2022-04-06'
tags: ['Hello world']
---
import Layout from 'layouts/MDXLayout';
import dynamic from 'next/dynamic';
export const RUASandpack = dynamic(() => import('components/RUA/RUASandpack'));
export const meta = {
title: 'Hello world',
date: '2022-04-06',
tags: ['Hello world'],
};
export default ({ children }) => (
<Layout {...meta} showTOC={false}>
{children}
</Layout>
);
## Hello
This is my first post!
```ts
console.log('Hello world');
```
## Say hello to world
export const main = `export default function App() {
return <h1>Hello world</h1>
}`;
<RUASandpack
template="react"
files={{
'/App.js': main,
}}
/>