Skip to content

Commit df54ee2

Browse files
committed
docs: 更新 demo
1 parent c9140b7 commit df54ee2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ import MarkdownNice from "markdown-nice";
2525
function App() {
2626
return (
2727
<div>
28-
<MarkdownNice title="Markdown Nice" previewType="pc" />
28+
<MarkdownNice
29+
previewType="pc"
30+
title="Markdown Nice"
31+
onTitleChange={(t) => console.log("title => ", t)}
32+
text={t}
33+
onTextChange={(t) => console.log("text => ", t)}
34+
/>
2935
</div>
3036
);
3137
}

0 commit comments

Comments
 (0)