MDX Blog Post
· 약 1분
Blog posts support Docusaurus Markdown features, such as MDX.
팁
Use the power of React to create interactive blog posts.
For example, use JSX to create an interactive button:
/src/components/HelloCodeTitle.js
function HelloCodeTitle(props) {
return <h1>Hello, {props.name}</h1>;
}
<button onClick={() => alert('button clicked!')}>Click me!</button>
const a = 1;
const a = 1;
export function foo() {
console.log("foo");
return "bar";
}
