UNPKG

preact

Version:

Fast 3kb React alternative with the same modern API. Components & Virtual DOM.

10 lines (9 loc) 424 B
/** * Virtual DOM Node * @typedef VNode * @property {string | function} nodeName The string of the DOM node to create or Component constructor to render * @property {Array<VNode | string>} children The children of node * @property {string | number | undefined} key The key used to identify this VNode in a list * @property {object} attributes The properties of this VNode */ export const VNode = function VNode() {};