diff --git a/README.md b/README.md index a66f077..a33c05b 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,15 @@ export default defineConfig({ ``` ```javascript -import { Repl } from '@zhangmo8/repl-react' - - +import { Repl, useReplStore } from '@zhangmo8/repl-react' + +const Demo = () => { + const { state, setState } = useReplStore() + return ( +
+ +

Code: {state.code}

+
+ ) +} ```