(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
/* 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); |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.