speice.io/blog/2021-08-01-mdx-blog-post.mdx

34 lines
651 B
Plaintext
Raw Normal View History

2024-09-30 21:01:59 -04:00
---
slug: mdx-blog-post
title: MDX Blog Post
date: 2021-08-02 10:00:00
authors: [bspeice]
tags: []
---
## title
Hello?
Blog posts support [Docusaurus Markdown features](https://docusaurus.io/docs/markdown-features), such as [MDX](https://mdxjs.com/).
:::tip
Use the power of React to create interactive blog posts.
:::
{/* truncate */}
For example, use JSX to create an interactive button:
```js
// highlight-start
<button onClick={() => alert('button clicked!')}>Click me!</button>
// highlight-end
<button onClick={() => alert('button clicked!')}>Click me!</button>
```
<button onClick={() => alert('button clicked!')}>Click me!</button>