Skip to content

Instantly share code, notes, and snippets.

@Mayankgupta688
Last active April 22, 2019 08:01
Show Gist options
  • Save Mayankgupta688/9b8e1c44d63cdd9fad868b87a74e9760 to your computer and use it in GitHub Desktop.
Save Mayankgupta688/9b8e1c44d63cdd9fad868b87a74e9760 to your computer and use it in GitHub Desktop.
import { fromEvent } from 'rxjs';
const clicksInDocument = fromEvent(document, 'click');
const clicksInDiv = fromEvent(document.getElementById("articleDiv", 'click');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment