Skip to content

Commit

Permalink
feat: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangmo8 committed Dec 13, 2024
1 parent af04140 commit 676d1d8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ export default defineConfig({
```

```javascript
import { Repl } from '@zhangmo8/repl-react'

<Repl />
import { Repl, useReplStore } from '@zhangmo8/repl-react'

const Demo = () => {
const { state, setState } = useReplStore()
return (
<div>
<Repl />
<p>Code: {state.code}</p>
</div>
)
}
```

0 comments on commit 676d1d8

Please sign in to comment.