Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: React-decoration – A collection of decorators for React Components.
@autobind onClick() {} is equivalent to : onClick = () => {}
@extractValue onChange(value) {} is equivalent to : onChange({value}) {}
It longer, less efficient, less understandable.
@autobind onClick() {} is equivalent to : onClick = () => {}
@extractValue onChange(value) {} is equivalent to : onChange({value}) {}
It longer, less efficient, less understandable.