Skip to content

Instantly share code, notes, and snippets.

View tomauty's full-sized avatar

Tom Auty tomauty

View GitHub Profile
@tomauty
tomauty / example1.tsx
Last active November 11, 2016 02:20
higher order component / state sharing example
interface IComponentAProps {
fromB: string;
onChange: (t: string) => void;
}
class ComponentA extends Component<IComponentAProps, void> {
render() {
return (
<View>