How do I rewrite this Rxjs 4 snippet in Rxjs 6?
const click$ = Rx.Observable.fromEvent($(\'.btn\'), \'click\').share(); click$ .scan((a, b) => a + 1, 0)