Replies: 1 comment 1 reply
-
const App: FC = () => {
const count = useObservableState(count$)
const handleIncrement = () => count$.next(count + 1)
return (
<div>
<p>{count}</p>
<button onClick={handleIncrement}>Increment</button>
</div>
)
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Has there been any discussion around including a hook that facilitates working with BehaviorSubject?
If not, what is your opinion on having such hook included in the library?
Beta Was this translation helpful? Give feedback.
All reactions