mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
44 lines
683 B
Plaintext
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,
|
|
}}
|
|
/>
|