1.0.0 • Published 6 years ago
mobile-keyboard-observer v1.0.0
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