Skip to content

Instantly share code, notes, and snippets.

View tuandinh0801's full-sized avatar
🏛️
Building

Tuan Dinh tuandinh0801

🏛️
Building
  • Ho Chi Minh, Vietnam
View GitHub Profile
const handleDrawingEvent = line => ({
line,
type: 'LINE_DRAWN'
})
const drawingSyncSuccess = () => ({
type: 'DRAWING_SYNC_SUCCESS',
})
const drawingSyncFailure = () => ({
Observable
.fromEvent(button, 'click' )
.debounceTime( 500 )
.subscribe(event => {
console.log( 'clicked!' )
})
Observable
.fromEvent( button, 'click' )
.subscribe(event => {
console.log( 'clicked!' )
})
button.addEventListener( 'click', event => {
console.log( 'clicked!' );
});