Skip to content

Instantly share code, notes, and snippets.

View rabet's full-sized avatar

rabet

View GitHub Profile
@rabet
rabet / introrx.md
Created November 10, 2015 23:55 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@rabet
rabet / codeSplitting.js
Created March 25, 2019 20:21 — forked from mgreer/codeSplitting.js
Code splitting HOC
// @flow
import * as React from 'react';
import {asyncComponent} from 'react-async-component';
export const loaderMaker = (bgColor: string = 'transparent') => () => (
<div style={{position: 'absolute', width: '100%', height: '100%', backgroundColor: bgColor}} />
);
const MAX_RETRIES = 3;
const STARTING_BACKOFF = 500;