Skip to content

Commit 676d1d8

Browse files
committed
feat: update readme
1 parent af04140 commit 676d1d8

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,15 @@ export default defineConfig({
2222
```
2323

2424
```javascript
25-
import { Repl } from '@zhangmo8/repl-react'
26-
27-
<Repl />
25+
import { Repl, useReplStore } from '@zhangmo8/repl-react'
26+
27+
const Demo = () => {
28+
const { state, setState } = useReplStore()
29+
return (
30+
<div>
31+
<Repl />
32+
<p>Code: {state.code}</p>
33+
</div>
34+
)
35+
}
2836
```

0 commit comments

Comments
 (0)