-
codeconst $state = useConstant(() => proxy())
const state$ = useSnapshot($state)
|
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Apr 6, 2022
Replies: 1 comment 2 replies
-
Yes. You can pass |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
lamualfa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. You can pass
$state
with React Context too.