Skip to content

Commit

Permalink
Update subscribe.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
puxiao authored Nov 30, 2023
1 parent 8109d20 commit 0d6ff23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/advanced/subscribe.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: 'Subscribe to a current state/object'
You can access state outside your components and subscribe to changes.

```jsx
import { subscribe } from 'valtio'
import { proxy, subscribe } from 'valtio'

const state = proxy({ count: 0 })

Expand Down

0 comments on commit 0d6ff23

Please sign in to comment.