Working outside React

Learn how to use Valtio to interact with non-React code.

We'll cover the following

In some requirements, we would need to connect our state outside React. We have two functions exported for this use case: subscribe and snapshot. Both functions are used internally in useSnapshot.

Get hands-on with 1200+ tech skills courses.