Skip to content

Instantly share code, notes, and snippets.

View geminiyellow's full-sized avatar
🌴
On vacation

geminiyellow geminiyellow

🌴
On vacation
View GitHub Profile
@geminiyellow
geminiyellow / introrx.md
Created April 28, 2016 11:27 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@geminiyellow
geminiyellow / foo.tsx
Created April 10, 2020 02:58 — forked from OliverJAsh/foo.tsx
TypeScript React HOC using `forwardRef`
import * as React from 'react';
import { Component, ComponentClass, createRef, forwardRef, Ref } from 'react';
const myHoc = <ComposedComponentProps extends {}>(
ComposedComponent: ComponentClass<ComposedComponentProps>,
) => {
type ComposedComponentInstance = InstanceType<typeof ComposedComponent>;
type WrapperComponentProps = ComposedComponentProps & {
wrapperComponentProp: number;