Skip to content

Instantly share code, notes, and snippets.

import React from "react";
import { render } from "react-dom";
import { LineChart, Line, XAxis, YAxis, ReferenceLine } from "recharts";
const styles = {
fontFamily: "sans-serif",
textAlign: "center"
};
@ashl1
ashl1 / gist:9b1150e23a9fef2e36a81c8d944995d8
Last active December 10, 2017 15:26
Promise chain graph
(({timeout1, timeout2}) => {
const startOp = (name, timeout) => () => {
console.log(name + ' started at ' + Date.now())
return new Promise(function(resolve) {
setTimeout(function() {
resolve();
}, timeout);
});
}