diff --git a/docs/api/advanced/subscribe.mdx b/docs/api/advanced/subscribe.mdx index 21adcb0f..afef0466 100644 --- a/docs/api/advanced/subscribe.mdx +++ b/docs/api/advanced/subscribe.mdx @@ -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 })