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