Skip to content

Instantly share code, notes, and snippets.

@park-brian
park-brian / createElement
Last active May 11, 2017 03:41
createElement.js
/* Example usage:
* let el = createElement('div', {style: 'color: green'}, 'Hello world!');
* document.body.appendChild(el);
* /
export const createElement = (type, props, ...children) => {
if (type.constructor === Function)
return type(props);
@park-brian
park-brian / introrx.md
Created October 11, 2016 20:44 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing