Skip to content

Instantly share code, notes, and snippets.

View UpperCod's full-sized avatar
🏠
Working from home

Matias Trujillo UpperCod

🏠
Working from home
View GitHub Profile
@marvinhagemeister
marvinhagemeister / little-vdom-decompiled.js
Created March 8, 2020 14:13
Jason little-vdom decompiled
/* eslint-disable no-unused-vars */
/* eslint-disable no-else-return */
// JSX constructor, similar to createElement()
export const h = (type, props, ...children) => {
return {
type,
// Props will be an object for components and DOM nodes, but a string for
// text nodes
props,