Is it possible to read/write atom outside React component? #1478
Replies: 1 comment
-
Jotai atoms are contextual, which means not globally accessible. It's the same as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use a library that exposes the data using non-react-component callbacks.
I need to save a ref to HTML element inside of that callback.
But the problem is that it is not a React Component.
It is possible to write to Jotai atom from a regular function?
Example:
Beta Was this translation helpful? Give feedback.
All reactions