Skip to content

Commit eb598a3

Browse files
committed
doc: Update README.md
1 parent 3ad4b4e commit eb598a3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ npm install @uiw/react-code-preview --save
1919

2020
## Usage
2121

22-
[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/polished-surf-t6ro9?fontsize=14&hidenavigation=1&theme=dark)
23-
2422
### In React 18
2523

24+
[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/uiw-react-code-preview-react-18-1bmhhd?fontsize=14&hidenavigation=1&theme=dark)
25+
2626
```jsx
2727
import Button from '@uiw/react-button';
2828
import CodePreview from '@uiw/react-code-preview';
@@ -45,6 +45,8 @@ export default function App() {
4545

4646
### In React 17
4747

48+
[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/uiw-react-code-preview-react-17-t6ro9?fontsize=14&hidenavigation=1&theme=dark)
49+
4850
```jsx
4951
import Button from '@uiw/react-button';
5052
import CodePreview from '@uiw/react-code-preview';

0 commit comments

Comments
 (0)