Skip to content

Instantly share code, notes, and snippets.

@dalenberg
dalenberg / input.ts
Created May 23, 2018 14:12
React Typescript input field proptype checking
import * as React from 'react';
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
extraProp?: string;
}
export const Input = ({ extraProps }: InputProps) => (
<input {...props} />
);
@dalenberg
dalenberg / .block
Created February 8, 2018 14:47
Canvas tutorial - Turn SVG scatterplot into Canvas - Normal level
license: mit