Skip to content

Commit

Permalink
Update subscribe.mdx (#829)
Browse files Browse the repository at this point in the history
  • Loading branch information
puxiao committed Nov 30, 2023
1 parent 8109d20 commit 58f17ba
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

1 comment on commit 58f17ba

@vercel
Copy link

@vercel vercel bot commented on 58f17ba Nov 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

valtio – ./

valtio-git-main-pmndrs.vercel.app
valtio-pmndrs.vercel.app
valtio.pmnd.rs
valtio.vercel.app

Please sign in to comment.