This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface RefHandles { | |
scrollToIntent: HTMLElement['scrollTo']; | |
} | |
const targetElement = document.createElement('div'); | |
const handles: RefHandles = { | |
scrollToIntent(...args: any[]) { | |
targetElement.scrollTo(...args); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useInstance } from 'object-hooks'; | |
class Analytics { | |
private api = () => { | |
const raceError = new Error('handler called before loaded'); | |
bugsnagClient.notify(raceError); | |
}; | |
public log = (...args: any[]) => { | |
return this.api(...args); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class Cardz extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
tilesData: [ | |
{ | |
img: 'http://loremflickr.com/640/400/breakfast/all', | |
title: 'Breakfast', |