加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

[React] Build a slide deck with mdx-deck using Markdown + Re

发布时间:2020-12-15 20:25:05 所属栏目:百科 来源:网络整理
导读:In this lesson we‘ll use mdx-deck to create a slide deck using Markdown and React. We‘ll look at adding multiple slides,code snippets,and importing React components. We‘ll also leverage the mdx-deck CLI for our development environment a

In this lesson we‘ll use mdx-deck to create a slide deck using Markdown and React. We‘ll look at adding multiple slides,code snippets,and importing React components. We‘ll also leverage the mdx-deck CLI for our development environment and building for production.

Additional Resources:

https://egghead.io/lessons/react-create-and-import-react-components-with-markdown-using-mdxc

https://github.com/jxnblk/mdx-deck

https://twitter.com/jxnblk/status/1023667155324346373

?

Install:

yarn add mdx-deck

?

deck.mdx:

export {book as theme} from mdx-deck/themes

# Hello! this is my first slide!

---

# We will see how mdx-deck works

```notes
These are only visible in presenter mode
```

---

```jsx
<Button />
```

---

import Counter from components/Counter

<Counter />

?

package.json:

  "scripts": {
    "start": "mdx-deck deck.mdx","build": "mdx-deck build deck.mdx"
  },

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读