/** Virtual DOM Node */ export function VNode(nodeName, attributes, children) { /** @type {string|function} */ this.nodeName = nodeName; /** @type {object|undefined} */ this.attributes = attributes; /** @type {array|undefined} */ this.children = children; /** Reference to the given key. */ this.key = attributes && attributes.key; }