1.0.0 • Published 6 years ago

mobile-keyboard-observer v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

useObservable React Hook

const Component = () => {
    const value = useObservable(store)
    return <div>{ value }</div>
}

If an initialValue is not supplied it will try to get the current value of the observable as the initial value

useObservable(observable, initialValue?)
1.0.0

6 years ago