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"
},

最新文章

  1. 大熊君学习html5系列之------History API(SPA单页应用的必备------重构完结版)
  2. PHP获取指定月份的第一天开始和最后一天结束的时间戳函数
  3. 边工作边刷题:70天一遍leetcode: day 85
  4. Spring与jsp表达式的产生的问题
  5. 单源最短路_SPFA_C++
  6. SQL 测试
  7. PIL Image 转成 wx.Image、wx.Bitmap
  8. 使用游标循环进行SQL更新插入的SQL语句
  9. HTML5开发入门经典教程和案例合集(含视频教程)
  10. 【APP UI 设计模式】(一)APP UI 设计原则和流程
  11. dlopen函数详解
  12. Ubuntu环境下 matplotlib 图例中文乱码
  13. 对比MFC和Winform及WPF
  14. shift() 方法从数组中删除第一个元素,并返回该元素的值。此方法更改数组的长度。
  15. 获取访问者的IP地址
  16. 冲刺博客NO.1
  17. e815. 监听当前选择的的菜单或菜单项
  18. 微服务架构之spring cloud feign
  19. C++解析(26):函数模板与类模板
  20. html5标签---不常用新标签的整理

热门文章

  1. jsdk之微信分享流程
  2. workstation服务丢失 共享打不开 0x80070035
  3. Net作业调度
  4. redisd的非持久化配置
  5. NLog小记
  6. WebService 服务开发
  7. 面试之Spring
  8. oracle分析函数之ratio_to_report
  9. [bzoj2806][Ctsc2012]Cheat(后缀自动机(SAM)+二分答案+单调队列优化dp)
  10. python 项目部署virtualenv