From 0d6ff23af91c5d65db23c95e359f1b95821df402 Mon Sep 17 00:00:00 2001 From: puxiao Date: Thu, 30 Nov 2023 11:47:00 +0800 Subject: [PATCH] Update subscribe.mdx --- docs/api/advanced/subscribe.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 })