useUnit Hook
Last updated
Was this helpful?
Last updated
Was this helpful?
Using the ActiveJS is similar to RxJS Observables and other observable and subscription-based libraries.
However, if you don't want to create a useState
and useEffect
binding every time you use a Unit, you can create a custom Hook
for using ActiveJS , and pass the Unit to useUnit
Hook to bind the Unit with your React component.
See for basic usage.