Skip to content

Commit 82eccfd

Browse files
committed
doc: Update README.md
1 parent 99ec47c commit 82eccfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ react-code-preview-layout
66

77
展示 `代码``代码在线预览示例` 布局的一个 react 组件。配合 [markdown-react-code-preview-loader](https://github.com/kktjs/markdown-react-code-preview-loader) Webpack Loader 可很好的用于文档中的 react 示例展示。
88

9-
组件内置 [`@uiw/react-codepen`](https://github.com/uiwjs/react-codepen)[`@uiw/react-codesandbox`](https://github.com/uiwjs/react-codesandbox) 依赖,用于动态地将代码示例生成 [`codepen`](https://github.com/uiwjs/react-codepen) 项目和 [`codesandbox`](https://codesandbox.io/) 项目。
10-
119
```bash
1210
npm install react-code-preview-layout --save
1311
```
@@ -133,6 +131,8 @@ export default Demo;
133131

134132
## 添加 Codepen 按钮
135133

134+
可以使用 [`@uiw/react-codepen`](https://github.com/uiwjs/react-codepen)[`@uiw/react-codesandbox`](https://github.com/uiwjs/react-codesandbox) 组件添加代码预览按钮,他们用于动态地将代码示例生成 [`codepen`](https://github.com/uiwjs/react-codepen) 项目和 [`codesandbox`](https://codesandbox.io/) 项目。
135+
136136
```jsx mdx:preview?title=添加 Codepen 按钮
137137
import React from "react"
138138
import CodeLayout from "react-code-preview-layout"

0 commit comments

Comments
 (0)